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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。