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

定义

设置指定标识符部分的格式。

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

参数

typeName
String

数据对象类型的名称。

identifierPart
Object

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

withQuotes
Boolean

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

返回

String

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

例外

typeName 参数为 null。

适用于