共用方式為


IVsDataProvider.IsOperationSupported Method

Definition

Overloads

IsOperationSupported(CommandID, Object)

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

IsOperationSupported(Guid, CommandID, Object)

Determines whether a specific operation is supported by the provider in the current environment, for the specified DDEX data source.

IsOperationSupported(CommandID, Object)

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

public:
 bool IsOperationSupported(System::ComponentModel::Design::CommandID ^ command, System::Object ^ context);
public bool IsOperationSupported (System.ComponentModel.Design.CommandID command, object context);
abstract member IsOperationSupported : System.ComponentModel.Design.CommandID * obj -> bool
Public Function IsOperationSupported (command As CommandID, context As Object) As Boolean

Parameters

command
CommandID

A command that identifies the operation.

context
Object

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

Returns

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

Exceptions

The command parameter is null.

<ANY>

The DDEX provider's IsOperationSupported(Guid, CommandID, Object) implementation threw an exception.

Applies to

IsOperationSupported(Guid, CommandID, Object)

Determines whether a specific operation is supported by the provider in the current environment, for the specified DDEX data source.

public:
 bool IsOperationSupported(Guid source, System::ComponentModel::Design::CommandID ^ command, System::Object ^ context);
public bool IsOperationSupported (Guid source, System.ComponentModel.Design.CommandID command, object context);
abstract member IsOperationSupported : Guid * System.ComponentModel.Design.CommandID * obj -> bool
Public Function IsOperationSupported (source As Guid, command As CommandID, context As Object) As Boolean

Parameters

source
Guid

A DDEX data source identifier.

command
CommandID

A command that identifies the operation.

context
Object

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

Returns

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

Exceptions

The command parameter is null.

<ANY>

The DDEX provider's IsOperationSupported(Guid, CommandID, Object) implementation threw an exception.

Applies to