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
'宣言
Public Function ConvertToArray ( _
typeName As String, _
identifier As String _
) As Object()
'使用
Dim instance As DataObjectIdentifierConverter
Dim typeName As String
Dim identifier As String
Dim returnValue As Object()
returnValue = instance.ConvertToArray(typeName, _
identifier)
public Object[] ConvertToArray(
string typeName,
string identifier
)
public:
virtual array<Object^>^ ConvertToArray(
String^ typeName,
String^ identifier
) sealed
public final function ConvertToArray(
typeName : String,
identifier : String
) : Object[]
Parameters
typeName
Type: System.StringThe name of a data object type.
identifier
Type: System.StringA data source object identifier.
Return Value
Type: []
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 a 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.
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