Converts a set of identifier parts into a formatted string identifier.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Function ConvertToString ( _
typeName As String, _
identifier As Object() _
) As String
'使用
Dim instance As DataObjectIdentifierConverter
Dim typeName As String
Dim identifier As Object()
Dim returnValue As String
returnValue = instance.ConvertToString(typeName, _
identifier)
public string ConvertToString(
string typeName,
Object[] identifier
)
public:
virtual String^ ConvertToString(
String^ typeName,
array<Object^>^ identifier
) sealed
public final function ConvertToString(
typeName : String,
identifier : Object[]
) : String
Parameters
typeName
Type: System.StringThe name of a data object type.
identifier
Type: []An array containing a set of identifier parts for a specified object.
Return Value
Type: System.String
A string representation made up from the identifier parts and formatted according to the default formatting option.
Implements
IVsDataObjectIdentifierConverter.ConvertToString(String, [])
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The typeName parameter is a null reference (Nothing in Visual Basic). |
Remarks
This method uses the Default value as the formatting option.
The base implementation makes calls into the FormatPart and BuildString methods, which carry out smaller parts of the operation.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataObjectIdentifierConverter Class