Share via


IFileContextActionProvider.GetActionsAsync Method

Definition

Gets the actions appropriate for a given file and context.

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::Workspace::IFileContextAction ^> ^> ^ GetActionsAsync(System::String ^ filePath, Microsoft::VisualStudio::Workspace::FileContext ^ fileContext, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Workspace.IFileContextAction>> GetActionsAsync (string filePath, Microsoft.VisualStudio.Workspace.FileContext fileContext, System.Threading.CancellationToken cancellationToken);
abstract member GetActionsAsync : string * Microsoft.VisualStudio.Workspace.FileContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Workspace.IFileContextAction>>
Public Function GetActionsAsync (filePath As String, fileContext As FileContext, cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of IFileContextAction))

Parameters

filePath
String

The file workspace being passed

fileContext
FileContext

The context to act with.

cancellationToken
CancellationToken

A token that may cancel the request.

Returns

A task whose result is a list of actions that may be invoked for a given file and context.

Applies to