Freigeben über


IFileContextProvider<T>.GetContextsForFileAsync Method

Definition

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

Applies to