IVsDataObjectIdentifierResolver.ContractIdentifier 方法
當由類別實作、合約的一個資料物件中的識別項與指定型別和完整識別項。
命名空間: Microsoft.VisualStudio.Data.Services.SupportEntities
組件: Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)
語法
'宣告
Function ContractIdentifier ( _
typeName As String, _
fullIdentifier As Object() _
) As Object()
Object[] ContractIdentifier(
string typeName,
Object[] fullIdentifier
)
array<Object^>^ ContractIdentifier(
String^ typeName,
array<Object^>^ fullIdentifier
)
abstract ContractIdentifier :
typeName:string *
fullIdentifier:Object[] -> Object[]
function ContractIdentifier(
typeName : String,
fullIdentifier : Object[]
) : Object[]
參數
typeName
類型:String資料物件的型別名稱。
fullIdentifier
類型:array<Object[]資料物件的完整識別項。
傳回值
類型:array<Object[]
部分,資料物件的壓縮以的唯一識別項。
備註
實作這個方法會以完整識別項並將它轉換成唯一仍然識別物件的最短的可能的識別項。 例如,在 SQL Server 的執行個體,在中,當使用者連接做為 pubs 資料庫時的維度,則完整的識別項 pubs.dbo.authors 可以縮小至最簡單的形式, authors。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。