Share via


IVsDataProvider.IsOperationSupported Method (CommandID, Object)

Determines whether a specific operation is supported by the provider in the current environment.

Namespace:  Microsoft.VisualStudio.Data.Core
Assembly:  Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)

Syntax

'Declaration
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

Parameters

  • context
    Type: System.Object

    An object that represents the context in which the operation exists.

Return Value

Type: System.Boolean
true if the operation is supported by the provider in the current environment; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The command parameter is nulla null reference (Nothing in Visual Basic).

[<ANY>]

The DDEX provider's IsOperationSupported implementation threw an exception.

Remarks

This method delegates to the IsOperationSupported method, passing Empty as the value of the source parameter.

.NET Framework Security

See Also

Reference

IVsDataProvider Interface

IsOperationSupported Overload

Microsoft.VisualStudio.Data.Core Namespace