AdoDotNetObjectIdentifierConverter.FormatPart(String, Object, Boolean) 方法

定义

设置指定标识符部分的格式;如果 with Quote 参数为 true,则此方法将调用 QuoteIdentifier(String) 方法。

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

参数

typeName
String

数据对象类型的名称。

identifierPart
Object

标识符部分的未格式化值。

withQuotes
Boolean

指示是否应在必要时用引号将格式部分括起来。

返回

String

返回指定的标识符部分作为带格式的字符串。

例外

typeName 参数为 null。

适用于