共用方式為


DataObjectIdentifierResolver.QuickExpandIdentifier 方法

如果可能的話應用程式快速展開演算法識別項。

命名空間:  Microsoft.VisualStudio.Data
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)

語法

'宣告
Protected Overridable Function QuickExpandIdentifier ( _
    typeName As String, _
    partialIdentifier As Object() _
) As Object()
protected virtual Object[] QuickExpandIdentifier(
    string typeName,
    Object[] partialIdentifier
)
protected:
virtual array<Object^>^ QuickExpandIdentifier(
    String^ typeName, 
    array<Object^>^ partialIdentifier
)
abstract QuickExpandIdentifier : 
        typeName:string * 
        partialIdentifier:Object[] -> Object[] 
override QuickExpandIdentifier : 
        typeName:string * 
        partialIdentifier:Object[] -> Object[] 
protected function QuickExpandIdentifier(
    typeName : String, 
    partialIdentifier : Object[]
) : Object[]

參數

  • typeName
    類型:String

    資料物件的型別名稱。

  • partialIdentifier
    類型:array<Object[]

    資料物件的部分識別項。

傳回值

類型:array<Object[]
如果快速展開識別項,這是不可能的傳回已展開之識別項或傳回 nullnull 參考 (即 Visual Basic 中的 Nothing) 。

例外狀況

例外狀況 條件
ArgumentNullException

typeName 參數為 null。

備註

這個方法的目的是「快速」展開識別項,定義快約為暫時的。 例如,這個方法不會經由對可能需要秒才能執行的資料來源的某個昂貴的呼叫上執行。

ExpandIdentifier 方法的基底實作會先呼叫這個方法來查看是否有一個快速的方法展開識別項和此時會繼續進行,當快的副檔名不是可能的。

.NET Framework 安全性

請參閱

參考

DataObjectIdentifierResolver 類別

Microsoft.VisualStudio.Data 命名空間

ContractIdentifier