Partager via


IVsDataObjectIdentifierResolver.ContractIdentifier Method

When implemented by a class, contracts an identifier for a data object with the specified type and complete identifier.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

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

Parameters

  • typeName
    Type: System.String

    The name of a type of data object.

  • fullIdentifier
    Type: array<System.Object[]

    A full identifier of a data object.

Return Value

Type: array<System.Object[]
The partial, contracted unique identifier for a data object.

Remarks

Implement this method to take a full identifier and convert it to the shortest possible identifier that still uniquely identifies the object. For example, on an instance of SQL Server, when a user is connected as dbo to the database pubs, a full identifier pubs.dbo.authors can be contracted to the simpler form, authors.

.NET Framework Security

See Also

Reference

IVsDataObjectIdentifierResolver Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace