IVsDataConnectionManager.InvalidateConnection 方法 (Guid, String, Boolean)

如果存在并且是弱引用,移除指定的数据连接。

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

语法

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

参数

  • provider
    类型:System.Guid
    DDEX提供程序的GUID。
  • connectionString
    类型:System.String
    连接字符串以未加密或加密形式。
  • encryptedString
    类型:System.Boolean
    指示连接字符串是否的 Boolean 值加密(true)或未加密(false)。

返回值

类型:System.Boolean
true ,如果找到指定的数据连接并取消;否则,false。

.NET Framework 安全性

请参见

参考

IVsDataConnectionManager 接口

InvalidateConnection 重载

Microsoft.VisualStudio.Data.Services 命名空间