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 命名空间