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
'宣言
Public Overridable Function ContractIdentifier ( _
typeName As String, _
fullIdentifier As Object() _
) As Object()
'使用
Dim instance As DataObjectIdentifierResolver
Dim typeName As String
Dim fullIdentifier As Object()
Dim returnValue As Object()
returnValue = instance.ContractIdentifier(typeName, _
fullIdentifier)
public virtual Object[] ContractIdentifier(
string typeName,
Object[] fullIdentifier
)
public:
virtual array<Object^>^ ContractIdentifier(
String^ typeName,
array<Object^>^ fullIdentifier
)
public function ContractIdentifier(
typeName : String,
fullIdentifier : Object[]
) : Object[]
Parameters
typeName
Type: System.StringThe name of a type of data object.
fullIdentifier
Type: []A full identifier of a data object.
Return Value
Type: []
The partial, contracted unique identifier for a data object.
Implements
IVsDataObjectIdentifierResolver.ContractIdentifier(String, [])
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.
Permissions
- 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.
See Also
Reference
DataObjectIdentifierResolver Class