Formats a specified identifier part.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Protected Overridable Function FormatPart ( _
typeName As String, _
identifierPart As Object, _
withQuotes As Boolean _
) As String
'使用
Dim typeName As String
Dim identifierPart As Object
Dim withQuotes As Boolean
Dim returnValue As String
returnValue = Me.FormatPart(typeName, _
identifierPart, withQuotes)
protected virtual string FormatPart(
string typeName,
Object identifierPart,
bool withQuotes
)
protected:
virtual String^ FormatPart(
String^ typeName,
Object^ identifierPart,
bool withQuotes
)
protected function FormatPart(
typeName : String,
identifierPart : Object,
withQuotes : boolean
) : String
Parameters
typeName
Type: System.StringThe name of the data object type.
identifierPart
Type: System.ObjectThe unformatted value of an identifier part.
withQuotes
Type: System.BooleanIndicates whether the formatted part should be enclosed in quotation marks, where necessary.
Return Value
Type: System.String
Returns the specified identifier part as a formatted string.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The typeName parameter is null. |
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