共用方式為


IVsDataProvider.IsOperationSupported 方法 (CommandID, Object)

判斷特定作業是否已在目前環境的提供者支援。

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

語法

'宣告
Function IsOperationSupported ( _
    command As CommandID, _
    context As Object _
) As Boolean
bool IsOperationSupported(
    CommandID command,
    Object context
)
bool IsOperationSupported(
    CommandID^ command, 
    Object^ context
)
abstract IsOperationSupported : 
        command:CommandID * 
        context:Object -> bool
function IsOperationSupported(
    command : CommandID, 
    context : Object
) : boolean

參數

  • command
    類型:CommandID

    命令識別作業。

  • context
    類型:Object

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

傳回值

類型:Boolean
true ,如果作業是在目前環境的提供者支援;則為,否則為 false。

例外狀況

例外狀況 條件
ArgumentNullException

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

[<ANY>]

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

備註

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

.NET Framework 安全性

請參閱

參考

IVsDataProvider 介面

IsOperationSupported 多載

Microsoft.VisualStudio.Data.Core 命名空間