DataConnection.EquivalentTo Method
Retrieves a Boolean value indicating whether or not information about the current connection is equivalent, in a design time sense, to the specified connection information.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public MustOverride Function EquivalentTo ( _
provider As Guid, _
connectionString As String, _
encryptedString As Boolean _
) As Boolean
public abstract bool EquivalentTo(
Guid provider,
string connectionString,
bool encryptedString
)
public:
virtual bool EquivalentTo(
Guid provider,
String^ connectionString,
bool encryptedString
) abstract
abstract EquivalentTo :
provider:Guid *
connectionString:string *
encryptedString:bool -> bool
public abstract function EquivalentTo(
provider : Guid,
connectionString : String,
encryptedString : boolean
) : boolean
Parameters
provider
Type: System.GuidThe unique identifier of a DDEX provider.
connectionString
Type: System.StringAn unencrypted or encrypted provider-specific connection string.
encryptedString
Type: System.BooleanIndication whether the connectionString parameter is unencrypted or encrypted. Provides true if encrypted.
Return Value
Type: System.Boolean
Returns true if the current connection's information is equivalent to connection information for the specified connection; otherwise returns false.
Remarks
This method is a convenience wrapper around the EquivalentTo method, sidestepping the need to manually create two DataConnectionProperties instances, configure both, and then call the EquivalentTo method on one of them, passing in the other.
.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.