IWorkspace.GetFileContextsAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| GetFileContextsAsync(String, IEnumerable<Guid>, CancellationToken) |
Ruft die der angegebenen Arbeitsbereichs Position zugeordneten Datei Kontexte ab. |
| GetFileContextsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken) |
Datei Kontexte für einen Arbeitsbereichs Kontext |
GetFileContextsAsync(String, IEnumerable<Guid>, CancellationToken)
Ruft die der angegebenen Arbeitsbereichs Position zugeordneten Datei Kontexte ab.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextProvider,Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata>,Microsoft.VisualStudio.Workspace.FileContext>>> GetFileContextsAsync (string path, System.Collections.Generic.IEnumerable<Guid> fileContextTypes, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContextsAsync : string * seq<Guid> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextProvider, Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata>, Microsoft.VisualStudio.Workspace.FileContext>>>
Public Function GetFileContextsAsync (path As String, fileContextTypes As IEnumerable(Of Guid), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of IGrouping(Of Lazy(Of IFileContextProvider, IFileContextProviderMetadata), FileContext)))
Parameter
- path
- String
Der Pfad der Datei oder des Ordners, für die ein Kontext erforderlich ist. Kann absolut oder relativ zum Stamm des Arbeitsbereichs sein Location .
- fileContextTypes
- IEnumerable<Guid>
Die Auflistung der Datei Kontext Typen, die für den Aufrufer von Interesse sind.
- cancellationToken
- CancellationToken
Ein Abbruchtoken.
Gibt zurück
Die Auflistung der anwendbaren Datei Kontext Anbieter.
Gilt für
GetFileContextsAsync<T>(String, T, IEnumerable<Guid>, CancellationToken)
Datei Kontexte für einen Arbeitsbereichs Kontext
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextProvider,Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata>,Microsoft.VisualStudio.Workspace.FileContext>>> GetFileContextsAsync<T> (string path, T context, System.Collections.Generic.IEnumerable<Guid> fileContextTypes, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContextsAsync : string * 'T * seq<Guid> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Linq.IGrouping<Lazy<Microsoft.VisualStudio.Workspace.IFileContextProvider, Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata>, Microsoft.VisualStudio.Workspace.FileContext>>>
Public Function GetFileContextsAsync(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 IFileContextProvider, IFileContextProviderMetadata), FileContext)))
Typparameter
- T
Typ des zu über gebenden Arbeitsbereichs Kontexts
Parameter
- path
- String
Der Pfad der Datei oder des Ordners, für die ein Kontext erforderlich ist. Kann absolut oder relativ zum Stamm des Arbeitsbereichs sein Location .
- context
- T
Instanz des Arbeitsbereichs Kontexts
- fileContextTypes
- IEnumerable<Guid>
Die Auflistung der Datei Kontext Typen, die für den Aufrufer von Interesse sind.
- cancellationToken
- CancellationToken
Ein Abbruchtoken.
Gibt zurück
Die Auflistung der anwendbaren Datei Kontext Anbieter.