IVsDataConnection.EquivalentTo 方法

指示提供的数据连接信息,如由提供程序GUID和连接字符串,是否与数据连接的当前实例等效。

命名空间:  Microsoft.VisualStudio.Data.Services
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function EquivalentTo ( _
    provider As Guid, _
    connectionString As String, _
    encryptedString As Boolean _
) As Boolean
bool EquivalentTo(
    Guid provider,
    string connectionString,
    bool encryptedString
)
bool EquivalentTo(
    Guid provider, 
    String^ connectionString, 
    bool encryptedString
)
abstract EquivalentTo : 
        provider:Guid * 
        connectionString:string * 
        encryptedString:bool -> bool 
function EquivalentTo(
    provider : Guid, 
    connectionString : String, 
    encryptedString : boolean
) : boolean

参数

  • provider
    类型:System.Guid
    数据提供程序的GUID。
  • connectionString
    类型:System.String
    包含连接属性和值的连接字符串。
  • encryptedString
    类型:System.Boolean
    指示连接字符串是否的 Boolean 值进行加密。

返回值

类型:System.Boolean
true ,如果提供的数据连接信息与当前实例等效,否则,false。

.NET Framework 安全性

请参见

参考

IVsDataConnection 接口

Microsoft.VisualStudio.Data.Services 命名空间