Share via


DataObjectIdentifierConverter.FormatPart Method

Formats a specified identifier part.

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

Syntax

'Declaration
Protected Overridable Function FormatPart ( _
    typeName As String, _
    identifierPart As Object, _
    withQuotes As Boolean _
) As String
protected virtual string FormatPart(
    string typeName,
    Object identifierPart,
    bool withQuotes
)
protected:
virtual String^ FormatPart(
    String^ typeName, 
    Object^ identifierPart, 
    bool withQuotes
)
abstract FormatPart : 
        typeName:string * 
        identifierPart:Object * 
        withQuotes:bool -> string 
override FormatPart : 
        typeName:string * 
        identifierPart:Object * 
        withQuotes:bool -> string 
protected 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.

.NET Framework Security

See Also

Reference

DataObjectIdentifierConverter Class

Microsoft.VisualStudio.Data Namespace