AdoDotNetConnectionProperties.EquivalentTo Method
Tests whether the current instance of the class is equivalent to another class instance.
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Overrides Function EquivalentTo ( _
connectionProperties As DataConnectionProperties _
) As Boolean
public override bool EquivalentTo(
DataConnectionProperties connectionProperties
)
public:
virtual bool EquivalentTo(
DataConnectionProperties^ connectionProperties
) override
abstract EquivalentTo :
connectionProperties:DataConnectionProperties -> bool
override EquivalentTo :
connectionProperties:DataConnectionProperties -> bool
public override function EquivalentTo(
connectionProperties : DataConnectionProperties
) : boolean
Parameters
connectionProperties
Type: Microsoft.VisualStudio.Data.DataConnectionPropertiesConnection properties object against which an equivalency is to be established or refuted.
Return Value
Type: System.Boolean
Returns true if the specified object instances are equivalent; otherwise returns false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The connectionProperties parameter is null. |
Remarks
Equivalency in this context confirms that two connection properties instances establish identical connections.
Overrides the EquivalentTo method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.