DataObjectIdentifierResolver.ContractIdentifier Method
Contracts an identifier for a data object with the specified type and complete identifier.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
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[]
Parameters
typeName
Type: System.StringThe 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.
Implements
IVsDataObjectIdentifierResolver.ContractIdentifier(String, array<Object[])
Remarks
Override this method to convert a full identifier to the smallest possible identifier that still uniquely identifies the object. For example, in a SQL Server database, when user dbo is connected to the pubs database, a full identifier pubs.dbo.authors can be contracted to the simpler form authors.
Notes to Inheritors
The derived class should override this method. The base implementation does nothing and returns the fullIdentifier parameter unmodified.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.