Share via


DataObjectIdentifierConverter.ConvertToString Method

Converts a set of identifier parts into a formatted string identifier based on the specified formatting options.

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

Syntax

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

Parameters

  • identifier
    Type: array<System.Object[]

    An array containing a set of identifier parts for a specified object.

Return Value

Type: System.String
Returns a partially or fully formatted identifier, depending on which parts of the input array were specified.

Exceptions

Exception Condition
ArgumentNullException

The typeName parameter is null.

Remarks

Normally a provider would not override this method directly. The base implementation makes calls into the FormatPart and BuildString methods which carry out smaller parts of the operation.

.NET Framework Security

See Also

Reference

DataObjectIdentifierConverter Class

Microsoft.VisualStudio.Data Namespace