Partager via


IDTCommandTarget.Exec Method

Definition

Executes the specified named command.

public:
 void Exec(System::String ^ CmdName, EnvDTE::vsCommandExecOption ExecuteOption, System::Object ^ % VariantIn, [Runtime::InteropServices::Out] System::Object ^ % VariantOut, [Runtime::InteropServices::Out] bool % Handled);
void Exec(std::wstring const & CmdName, EnvDTE::vsCommandExecOption ExecuteOption, winrt::Windows::Foundation::IInspectable const & & VariantIn, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & VariantOut, [Runtime::InteropServices::Out] bool & Handled);
[System.Runtime.InteropServices.DispId(2)]
public void Exec (string CmdName, EnvDTE.vsCommandExecOption ExecuteOption, ref object VariantIn, out object VariantOut, out bool Handled);
[<System.Runtime.InteropServices.DispId(2)>]
abstract member Exec : string * EnvDTE.vsCommandExecOption * obj * obj * bool -> unit
Public Sub Exec (CmdName As String, ExecuteOption As vsCommandExecOption, ByRef VariantIn As Object, ByRef VariantOut As Object, ByRef Handled As Boolean)

Parameters

CmdName
String

The name of the command to execute.

ExecuteOption
vsCommandExecOption

A vsCommandExecOption constant specifying the execution options.

VariantIn
Object

A value passed to the command.

VariantOut
Object

A value passed back to the invoker Exec method after the command executes.

Handled
Boolean
Attributes

Applies to