Freigeben über


IEditorCommandHandlerService.Execute<T> Method

Definition

Execute a given command on the ITextView associated with this IEditorCommandHandlerService instance.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Text::Editor::Commanding::EditorCommandArgs void Execute(Func<Microsoft::VisualStudio::Text::Editor::ITextView ^, Microsoft::VisualStudio::Text::ITextBuffer ^, T> ^ argsFactory, Action ^ nextCommandHandler);
public void Execute<T> (Func<Microsoft.VisualStudio.Text.Editor.ITextView,Microsoft.VisualStudio.Text.ITextBuffer,T> argsFactory, Action nextCommandHandler) where T : Microsoft.VisualStudio.Text.Editor.Commanding.EditorCommandArgs;
abstract member Execute : Func<Microsoft.VisualStudio.Text.Editor.ITextView, Microsoft.VisualStudio.Text.ITextBuffer, 'T (requires 'T :> Microsoft.VisualStudio.Text.Editor.Commanding.EditorCommandArgs)> * Action -> unit (requires 'T :> Microsoft.VisualStudio.Text.Editor.Commanding.EditorCommandArgs)
Public Sub Execute(Of T As EditorCommandArgs) (argsFactory As Func(Of ITextView, ITextBuffer, T), nextCommandHandler As Action)

Type Parameters

T

The type of the command being executed.

Parameters

argsFactory
Func<ITextView,ITextBuffer,T>

A factory of EditorCommandArgs that specifies what kind of command is being executed.

nextCommandHandler
Action

The next command handler to be called if no command handlers were able to handle the command.

Applies to