AdoDotNetObjectIdentifierConverter.FormatPart Method

Formats a specified identifier part; where the with Quotes parameter is true, this method calls the QuoteIdentifier method.

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

Syntax

'宣言
Protected Overrides 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 override string FormatPart(
    string typeName,
    Object identifierPart,
    bool withQuotes
)
protected:
virtual String^ FormatPart(
    String^ typeName, 
    Object^ identifierPart, 
    bool withQuotes
) override
protected override function FormatPart(
    typeName : String, 
    identifierPart : Object, 
    withQuotes : boolean
) : String

Parameters

  • identifierPart
    Type: System.Object

    The unformatted value of an identifier part.

  • withQuotes
    Type: System.Boolean

    Indicates 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

See Also

Reference

AdoDotNetObjectIdentifierConverter Class

AdoDotNetObjectIdentifierConverter Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace

FormatPart