Delen via


DataObjectIdentifierResolver.QuickExpandIdentifier Method

Applies an algorithm for quickly expanding an identifier, if possible.

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

Syntax

'Declaration
Protected Overridable Function QuickExpandIdentifier ( _
    typeName As String, _
    partialIdentifier As Object() _
) As Object()
protected virtual Object[] QuickExpandIdentifier(
    string typeName,
    Object[] partialIdentifier
)
protected:
virtual array<Object^>^ QuickExpandIdentifier(
    String^ typeName, 
    array<Object^>^ partialIdentifier
)
abstract QuickExpandIdentifier : 
        typeName:string * 
        partialIdentifier:Object[] -> Object[] 
override QuickExpandIdentifier : 
        typeName:string * 
        partialIdentifier:Object[] -> Object[] 
protected function QuickExpandIdentifier(
    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[]
Returns the expanded identifier, or returns nulla null reference (Nothing in Visual Basic) if it was not possible to quickly expand the identifier.

Exceptions

Exception Condition
ArgumentNullException

The typeName parameter is null.

Remarks

The purpose of this method is to attempt to "quickly" expand an identifier, where the definition of quick is approximately instantaneous. For example, this method would not be implemented by making some expensive call to the data source that potentially takes seconds to execute.

The base implementation of the ExpandIdentifier method calls this method first to see if there is a quick way to expand the identifier, and only then proceeds when quick expansion is not possible.

.NET Framework Security

See Also

Reference

DataObjectIdentifierResolver Class

Microsoft.VisualStudio.Data Namespace

ContractIdentifier