IWorkspace.GetActionsForContextsAsync Yöntem

Tanım

Bir dosya bağlamları kümesi için uygulanan eylemleri alır

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextActionProvider,Microsoft.VisualStudio.Workspace.IFileContextActionProviderMetadata>,Microsoft.VisualStudio.Workspace.IFileContextAction>>> GetActionsForContextsAsync (string filePath, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.FileContext> fileContexts, System.Threading.CancellationToken cancellationToken = default);
abstract member GetActionsForContextsAsync : string * seq<Microsoft.VisualStudio.Workspace.FileContext> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextActionProvider, Microsoft.VisualStudio.Workspace.IFileContextActionProviderMetadata>, Microsoft.VisualStudio.Workspace.IFileContextAction>>>
Public Function GetActionsForContextsAsync (filePath As String, fileContexts As IEnumerable(Of FileContext), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of IGrouping(Of Lazy(Of IFileContextActionProvider, IFileContextActionProviderMetadata), IFileContextAction)))

Parametreler

filePath
String

Hedefin dosya yolu

fileContexts
IEnumerable<FileContext>

Dosya bağlamları listesi

cancellationToken
CancellationToken

İptal belirteci.

Döndürülenler

Task<IReadOnlyList<IGrouping<Lazy<IFileContextActionProvider,IFileContextActionProviderMetadata>,IFileContextAction>>>

Dosya bağlamlarına uygulanacak eylemlerin listesi

Şunlara uygulanır