DataObjectIdentifierConverter.FormatPart 方法

设置一个指定的标识符部件。

命名空间:  Microsoft.VisualStudio.Data
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
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

参数

  • identifierPart
    类型:System.Object
    标识符部件的非格式化值。
  • withQuotes
    类型:System.Boolean
    指示是否括在引号应将设置了格式的部分,来。

返回值

类型:System.String
返回指定的标识符部件,已格式化的字符串。

异常

异常 条件
ArgumentNullException

typeName 参数为 null。

.NET Framework 安全性

请参见

参考

DataObjectIdentifierConverter 类

Microsoft.VisualStudio.Data 命名空间