IFileContextActionProvider.GetActionsAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取适用于给定文件和上下文的操作。
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))
参数
- filePath
- String
正在传递的文件工作区
- fileContext
- FileContext
要对其执行操作的上下文。
- cancellationToken
- CancellationToken
可取消请求的标记。
返回
一个任务,其结果是可为给定文件和上下文调用的操作的列表。