IDTCommandTarget.Exec(String, vsCommandExecOption, Object, Object, Boolean) IDTCommandTarget.Exec(String, vsCommandExecOption, Object, Object, Boolean) IDTCommandTarget.Exec(String, vsCommandExecOption, Object, Object, Boolean) IDTCommandTarget.Exec(String, vsCommandExecOption, Object, Object, Boolean) IDTCommandTarget.Exec(String, vsCommandExecOption, Object, Object, Boolean) 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);
abstract member Exec : string * EnvDTE.vsCommandExecOption *  *  *  -> 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 String String String String

The name of the command to execute.

VariantIn
Object Object Object Object Object

A value passed to the command.

VariantOut
Object Object Object Object Object

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

Applies to