次の方法で共有


IVsDataProvider.GetUnsupportedReason Method

Definition

Overloads

GetUnsupportedReason(CommandID, Object)

Gets a localized string that explains why an operation is not supported.

GetUnsupportedReason(Guid, CommandID, Object)

Gets a localized string that explains why an operation is not supported for the specified DDEX data source.

GetUnsupportedReason(CommandID, Object)

Gets a localized string that explains why an operation is not supported.

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

Parameters

command
CommandID

A command that identifies the operation.

context
Object

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

Returns

A localized string that explains why the specified operation is not supported, if the operation is in fact not supported; otherwise, null.

Exceptions

The command parameter is null.

<ANY>

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

Applies to

GetUnsupportedReason(Guid, CommandID, Object)

Gets a localized string that explains why an operation is not supported for the specified DDEX data source.

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

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

A localized string that explains why the specified operation is not supported, if the operation is in fact not supported; otherwise, null.

Exceptions

The command parameter is null.

<ANY>

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

Applies to