Condividi tramite


Metodo DataObjectIdentifierResolver.ContractIdentifier

Contratto un identificatore per un oggetto dati al tipo specificato e identificatore completo.

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

Sintassi

'Dichiarazione
Public Overridable Function ContractIdentifier ( _
    typeName As String, _
    fullIdentifier As Object() _
) As Object()
public virtual Object[] ContractIdentifier(
    string typeName,
    Object[] fullIdentifier
)
public:
virtual array<Object^>^ ContractIdentifier(
    String^ typeName, 
    array<Object^>^ fullIdentifier
)
abstract ContractIdentifier : 
        typeName:string * 
        fullIdentifier:Object[] -> Object[] 
override ContractIdentifier : 
        typeName:string * 
        fullIdentifier:Object[] -> Object[] 
public 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.

Implementa

IVsDataObjectIdentifierResolver.ContractIdentifier(String, array<Object[])

Note

Eseguire l'override di questo metodo per convertire un identificatore completo a più piccolo identificatore ancora possibile identificare in modo univoco l'oggetto. Ad esempio, in un database SQL Server, quando l'utente dbo è connessi al database pubs, un identificatore completo pubs.dbo.authors può essere contratto al formato più semplice authors.

Note per gli eredi

La classe derivata deve eseguire l'override di questo metodo. L'implementazione di base non effettua alcuna operazione e restituisce il parametro fullIdentifier invariato.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DataObjectIdentifierResolver Classe

Spazio dei nomi Microsoft.VisualStudio.Data.Framework