Share via


DataObjectIdentifierConverter.ConvertToArray Method

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

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

Syntax

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

Parameters

  • identifier
    Type: System.String

    A partially or fully formatted identifier.

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

The typeName parameter is null.

Remarks

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

Normally a provider would not override this method directly. 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 Namespace