Contracts an identifier by whatever means are available.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Protected Overridable Function SlowContractIdentifier ( _
typeName As String, _
fullIdentifier As Object() _
) As Object()
'使用
Dim typeName As String
Dim fullIdentifier As Object()
Dim returnValue As Object()
returnValue = Me.SlowContractIdentifier(typeName, _
fullIdentifier)
protected virtual Object[] SlowContractIdentifier(
string typeName,
Object[] fullIdentifier
)
protected:
virtual array<Object^>^ SlowContractIdentifier(
String^ typeName,
array<Object^>^ fullIdentifier
)
protected function SlowContractIdentifier(
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: []
Returns the contracted identifier.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The typeName parameter is null. |
Remarks
This method contracts an identifier using whatever means necessary to achieve the correct contraction. It may perform expensive operations as required. The base implementation delegates to the QuickContractIdentifier method.
The base implementation of the ContractIdentifier method tries to call the QuickContractIdentifier method first, and if that fails to provide a contraction it searches the cache for an existing entry. Finally, if no entry is found, it calls this method as a last resort.
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