AdoDotNetObjectIdentifierConverter.FormatPart 方法

设置一个指定的标识符部件;如果了引号参数为true,此方法调用 QuoteIdentifier 方法。

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

语法

声明
Protected Overrides Function FormatPart ( _
    typeName As String, _
    identifierPart As Object, _
    withQuotes As Boolean _
) As String
protected override string FormatPart(
    string typeName,
    Object identifierPart,
    bool withQuotes
)
protected:
virtual String^ FormatPart(
    String^ typeName, 
    Object^ identifierPart, 
    bool withQuotes
) override
abstract FormatPart : 
        typeName:string * 
        identifierPart:Object * 
        withQuotes:bool -> string 
override FormatPart : 
        typeName:string * 
        identifierPart:Object * 
        withQuotes:bool -> string 
protected override function FormatPart(
    typeName : String, 
    identifierPart : Object, 
    withQuotes : boolean
) : String

参数

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

返回值

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

异常

异常 条件
ArgumentNullException

typeName 参数为 null。

.NET Framework 安全性

请参见

参考

AdoDotNetObjectIdentifierConverter 类

Microsoft.VisualStudio.Data.AdoDotNet 命名空间

FormatPart