IWorkspace.GetFileContextActionsAsync Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| GetFileContextActionsAsync(String, IEnumerable<Guid>, CancellationToken) |
Belirtilen yoldaki kullanılabilir eylemleri alır. |
| GetFileContextActionsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken) |
Bir çalışma alanı bağlamındaki kullanılabilir eylemleri alır |
GetFileContextActionsAsync(String, IEnumerable<Guid>, CancellationToken)
Belirtilen yoldaki kullanılabilir 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>>> GetFileContextActionsAsync (string path, System.Collections.Generic.IEnumerable<Guid> fileContextTypes, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContextActionsAsync : string * seq<Guid> * 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 GetFileContextActionsAsync (path As String, fileContextTypes As IEnumerable(Of Guid), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of IGrouping(Of Lazy(Of IFileContextActionProvider, IFileContextActionProviderMetadata), IFileContextAction)))
Parametreler
- path
- String
Bir bağlamın gerekli olduğu dosya veya klasörün yolu. Mutlak veya çalışma alanı köküne göreli olabilir Location .
- fileContextTypes
- IEnumerable<Guid>
Dosya bağlamı türleri için isteğe bağlı liste
- cancellationToken
- CancellationToken
İptal belirteci.
Döndürülenler
- Task<IReadOnlyList<IGrouping<Lazy<IFileContextActionProvider,IFileContextActionProviderMetadata>,IFileContextAction>>>
Sonucu, belirtilen bir eylem koleksiyonu olan bir görevdir path .
Koleksiyon asla null olmamalıdır, ancak boş olabilir.
Şunlara uygulanır
GetFileContextActionsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken)
Bir çalışma alanı bağlamındaki kullanılabilir 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>>> GetFileContextActionsAsync<T> (string path, T context, System.Collections.Generic.IEnumerable<Guid> fileContextTypes, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContextActionsAsync : string * 'T * seq<Guid> * 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 GetFileContextActionsAsync(Of T) (path As String, context As T, fileContextTypes As IEnumerable(Of Guid), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of IGrouping(Of Lazy(Of IFileContextActionProvider, IFileContextActionProviderMetadata), IFileContextAction)))
Tür Parametreleri
- T
Çalışma alanı bağlamının türü
Parametreler
- path
- String
Bir bağlamın gerekli olduğu dosya veya klasörün yolu. Mutlak veya çalışma alanı köküne göreli olabilir Location .
- context
- T
Çalışma alanı bağlamı örneği
- fileContextTypes
- IEnumerable<Guid>
Dosya bağlamı türleri için isteğe bağlı liste
- cancellationToken
- CancellationToken
İptal belirteci.
Döndürülenler
- Task<IReadOnlyList<IGrouping<Lazy<IFileContextActionProvider,IFileContextActionProviderMetadata>,IFileContextAction>>>
Kullanılabilir eylemler