DataObjectIdentifierConverter.FormatPart(String, Object, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置指定标识符部分的格式。
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
指示是否应在必要时用引号将格式部分括起来。
返回
返回指定的标识符部分作为带格式的字符串。
例外
typeName 参数为 null。