IFileContextProvider<T>.GetContextsForFileAsync(String, T, CancellationToken) 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.
Kontext erhalten
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::FileContext ^> ^> ^ GetContextsForFileAsync(System::String ^ filePath, T context, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.FileContext>> GetContextsForFileAsync (string filePath, T context, System.Threading.CancellationToken cancellationToken);
abstract member GetContextsForFileAsync : string * 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.FileContext>>
Public Function GetContextsForFileAsync (filePath As String, context As T, cancellationToken As CancellationToken) As Task(Of IReadOnlyCollection(Of FileContext))
Parameter
- filePath
- String
Der Dateipfad für den Kontext.
- context
- T
Der Kontext für die Datei.
- cancellationToken
- CancellationToken
Abbruchtoken
Gibt zurück
Sammlung von Datei Kontexten