Compartir a través de


IVsDataProvider.IsOperationSupported (Método) (CommandID, Object)

确定给定是否在当前操作由环境的提供程序支持。

Espacio de nombres:  Microsoft.VisualStudio.Data.Core
Ensamblado:  Microsoft.VisualStudio.Data.Core (en Microsoft.VisualStudio.Data.Core.dll)

Sintaxis

'Declaración
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

Parámetros

  • command
    Tipo: CommandID

    确定操作的命令。

  • context
    Tipo: Object

    表示一个上下文操作存在的对象。

Valor devuelto

Tipo: Boolean
true ,如果操作按当前环境的提供程序支持;否则,返回 false。

Excepciones

Excepción Condición
ArgumentNullException

command 参数为 nullreferencia null (Nothing en Visual Basic)。

[<ANY>]

DDEX 提供程序的 IsOperationSupported 实现将引发异常。

Comentarios

IsOperationSupported 方法的委托,该方法将 Empty 作为 source 参数的值。

Seguridad de .NET Framework

Vea también

Referencia

IVsDataProvider Interfaz

IsOperationSupported (Sobrecarga)

Microsoft.VisualStudio.Data.Core (Espacio de nombres)