Condividi tramite


Metodo IVsDataObjectIdentifierResolver.ContractIdentifier

Se implementata da una classe, dai contratti un identificatore per un oggetto dati al tipo specificato e dall'identificatore completo.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Sintassi

'Dichiarazione
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[]

Parametri

  • typeName
    Tipo: String

    Il nome di un tipo di oggetto dati.

  • fullIdentifier
    Tipo: array<Object[]

    Un identificatore completo di un oggetto dati.

Valore restituito

Tipo: array<Object[]
La parziale, identificatore univoco contratto per un oggetto dati.

Note

Implementare il metodo per creare un identificatore completo e per convertirlo nel più breve possibile identificatore in grado di identificare in modo univoco l'oggetto. Ad esempio, in un'istanza di SQL Server, quando un utente è connesso come dbo a pub di database, un identificatore completo pubs.dbo.authors può essere contratto a forma più semplice, authors.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsDataObjectIdentifierResolver Interfaccia

Spazio dei nomi Microsoft.VisualStudio.Data.Services.SupportEntities