共用方式為


IVsDataProvider.GetUnsupportedReason 方法 (CommandID, Object)

取得說明的當地語系化字串作業為何不支援。

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

語法

'宣告
Function GetUnsupportedReason ( _
    command As CommandID, _
    context As Object _
) As String
string GetUnsupportedReason(
    CommandID command,
    Object context
)
String^ GetUnsupportedReason(
    CommandID^ command, 
    Object^ context
)
abstract GetUnsupportedReason : 
        command:CommandID * 
        context:Object -> string
function GetUnsupportedReason(
    command : CommandID, 
    context : Object
) : String

參數

  • command
    類型:CommandID

    命令識別作業。

  • context
    類型:Object

    表示內容作業存在的物件。

傳回值

類型:String
說明的當地語系化字串的作業為何不支援,則為,如果作業實際上不支援;則為,否則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

例外狀況

例外狀況 條件
ArgumentNullException

command 參數為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

[<ANY>]

DDEX 提供者的 GetUnsupportedReason 實作會擲回例外狀況。

備註

GetUnsupportedReason 方法的委派,這個方法會傳遞 Empty 做為 source 參數的值。

.NET Framework 安全性

請參閱

參考

IVsDataProvider 介面

GetUnsupportedReason 多載

Microsoft.VisualStudio.Data.Core 命名空間