Condividi tramite


AdoDotNetObjectIdentifierConverter.FormatPart(String, Object, Boolean) Method

Definition

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

protected:
 override System::String ^ FormatPart(System::String ^ typeName, System::Object ^ identifierPart, bool withQuotes);
protected override string FormatPart (string typeName, object identifierPart, bool withQuotes);
override this.FormatPart : string * obj * bool -> string
Protected Overrides Function FormatPart (typeName As String, identifierPart As Object, withQuotes As Boolean) As String

Parameters

typeName
String

The name of the data object type.

identifierPart
Object

The unformatted value of an identifier part.

withQuotes
Boolean

Indicates whether the formatted part should be enclosed in quotation marks, where necessary.

Returns

Returns the specified identifier part as a formatted string.

Exceptions

The typeName parameter is null.

Applies to