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
    型 : System.String
    データ オブジェクトの型の名前。
  • fullIdentifier
    型 : array<System.Object[]
    データ オブジェクトの完全な識別子。

戻り値

型 : array<System.Object[]
部分、データ オブジェクトの引き締められた一意の識別子。

解説

完全な識別子を取得し、そのオブジェクトを識別する可能な限り最短の識別子に変換するには、このメソッドを実装します。たとえば、SQL Server のインスタンスで、ユーザーがデータベースの pubs に dbo として接続すると、完全な識別子 pubs.dbo.authors は、単純な形式、authorsに引き締めるできます。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

IVsDataObjectIdentifierResolver インターフェイス

Microsoft.VisualStudio.Data.Services.SupportEntities 名前空間