共用方式為


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 命名空間