Share via


DataObjectIdentifierResolver.ExpandIdentifier Method

Expands an identifier for a data object with the specified type and partial identifier.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public MustOverride Function ExpandIdentifier ( _
    typeName As String, _
    partialIdentifier As Object() _
) As Object()
public abstract Object[] ExpandIdentifier(
    string typeName,
    Object[] partialIdentifier
)
public:
virtual array<Object^>^ ExpandIdentifier(
    String^ typeName, 
    array<Object^>^ partialIdentifier
) abstract
abstract ExpandIdentifier : 
        typeName:string * 
        partialIdentifier:Object[] -> Object[] 
public abstract function ExpandIdentifier(
    typeName : String, 
    partialIdentifier : Object[]
) : Object[]

Parameters

  • typeName
    Type: System.String

    The name of a type of data object.

  • partialIdentifier
    Type: array<System.Object[]

    A partial identifier of a data object.

Return Value

Type: array<System.Object[]
The complete, expanded identifier of the data object that matches the partial identifier passed in, or nulla null reference (Nothing in Visual Basic) if the identifier could not be expanded.

Implements

IVsDataObjectIdentifierResolver.ExpandIdentifier(String, array<Object[])

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 in 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 an object that has not been created), 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.

Notes to Inheritors

The derived class must implement this method.

.NET Framework Security

See Also

Reference

DataObjectIdentifierResolver Class

Microsoft.VisualStudio.Data.Framework Namespace