共用方式為


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

參數

  • context
    型別:System.Object
    表示內容作業存在的物件。

傳回值

型別:System.Boolean
true ,如果作業是以在目前環境的提供者支援,否則, false。

例外狀況

例外狀況 條件
ArgumentNullException

command 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

[<ANY>]

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

備註

這個方法 IsOperationSupported 方法的委派,並將 Empty 做為 source 參數的值。

.NET Framework 安全性

請參閱

參考

IVsDataProvider 介面

IsOperationSupported 多載

Microsoft.VisualStudio.Data.Core 命名空間