When implemented by a class, expands an identifier for a data object with the specified type and partial identifier.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Function ExpandIdentifier ( _
typeName As String, _
partialIdentifier As Object() _
) As Object()
'使用
Dim instance As IVsDataObjectIdentifierResolver
Dim typeName As String
Dim partialIdentifier As Object()
Dim returnValue As Object()
returnValue = instance.ExpandIdentifier(typeName, _
partialIdentifier)
Object[] ExpandIdentifier(
string typeName,
Object[] partialIdentifier
)
array<Object^>^ ExpandIdentifier(
String^ typeName,
array<Object^>^ partialIdentifier
)
function ExpandIdentifier(
typeName : String,
partialIdentifier : Object[]
) : Object[]
Parameters
typeName
Type: System.StringThe name of a type of data object.
partialIdentifier
Type: []A partial identifier of a data object.
Return Value
Type: []
The complete, expanded identifier of the data object that matches the partial identifier passed in, or a null reference (Nothing in Visual Basic) if the identifier could not be expanded.
Remarks
Implement this method to simulate how the data source expands identifiers. It is expected that the method will use the same mechanism of resolution as the data source. If the input identifier represents an actual object on the data source, it is expected that this method will find that object. If it does not represent an object (that is, if it is an identifier of a to-be-created object), it is expected that the method will complete the identifier in the same way that the data source would for such an object. For example, if a data source resolves authors in CREATE TABLE authors to pubs.dbo.authors, this method should do the same.
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
IVsDataObjectIdentifierResolver Interface
IVsDataObjectIdentifierResolver Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace