Compartir a través de


DataObjectIdentifierConverter.ConvertToArray Method

Converts a formatted string identifier into its equivalent set of identifier parts.

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

Syntax

'Declaración
Public Function ConvertToArray ( _
    typeName As String, _
    identifier As String _
) As Object()
public Object[] ConvertToArray(
    string typeName,
    string identifier
)
public:
virtual array<Object^>^ ConvertToArray(
    String^ typeName, 
    String^ identifier
) sealed
abstract ConvertToArray : 
        typeName:string * 
        identifier:string -> Object[] 
override ConvertToArray : 
        typeName:string * 
        identifier:string -> Object[] 
public final function ConvertToArray(
    typeName : String, 
    identifier : String
) : Object[]

Parameters

  • identifier
    Type: System.String
    A data source object identifier.

Return Value

Type: array<System.Object[]
An array containing the separated, unformatted identifier parts as derived from the input identifier.

Implements

IVsDataObjectIdentifierConverter.ConvertToArray(String, String)

Exceptions

Exception Condition
ArgumentNullException

The typeName parameter is nulla null reference (Nothing in Visual Basic).

Remarks

The string identifier passed in may or may not be formatted correctly; in the latter case, the method should attempt to parse it into identifier parts.

The base implementation makes calls into the SplitIntoParts and UnformatPart methods, which carry out smaller parts of the operation.

.NET Framework Security

See Also

Reference

DataObjectIdentifierConverter Class

Microsoft.VisualStudio.Data.Framework Namespace