IFileContextProvider<T>.GetContextsForFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the context
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))
Parameters
- filePath
- String
The file path for the context
- context
- T
Context for the file
- cancellationToken
- CancellationToken
Cancellation token
Returns
Collection of File Contexts