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