共用方式為


ICommandingTextBufferResolver.ResolveBuffersForCommand<TArgs> Method

Definition

Given a command type, resolves a list of text buffers on which a command should be executed.

public:
generic <typename TArgs>
 where TArgs : Microsoft::VisualStudio::Text::Editor::Commanding::EditorCommandArgs System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ ResolveBuffersForCommand();
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.ITextBuffer> ResolveBuffersForCommand<TArgs> () where TArgs : Microsoft.VisualStudio.Text.Editor.Commanding.EditorCommandArgs;
abstract member ResolveBuffersForCommand : unit -> seq<Microsoft.VisualStudio.Text.ITextBuffer> (requires 'Args :> Microsoft.VisualStudio.Text.Editor.Commanding.EditorCommandArgs)
Public Function ResolveBuffersForCommand(Of TArgs As EditorCommandArgs) () As IEnumerable(Of ITextBuffer)

Type Parameters

TArgs

Command type.

Returns

A list of text buffers on which a command should be executed.

Applies to