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
參數
- typeName
型別:System.String
資料物件型別的名稱。
- identifierPart
型別:System.Object
識別組件的未格式化的值。
- withQuotes
型別:System.Boolean
指示是否應該在引號括住格式化的一部分,則會在需要時。
傳回值
型別:System.String
傳回指定之識別項的組件,格式化字串。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | typeName 參數為 null。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。