IWorkspace.GetFileContextsForLanguageServicesAsync 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.
Dosya bağlamı yolu için eşleşen ılanguageserviceprovider 'ı döndür
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Tuple<Lazy<Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProvider,Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProviderMetadata>,System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.FileContext>>>> GetFileContextsForLanguageServicesAsync (string filePath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContextsForLanguageServicesAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Lazy<Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProvider, Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProviderMetadata> * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.FileContext>>>
Public Function GetFileContextsForLanguageServicesAsync (filePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of Tuple(Of Lazy(Of ILanguageServiceProvider, ILanguageServiceProviderMetadata), IReadOnlyCollection(Of FileContext))))
Parametreler
- filePath
- String
Dosyanın bağlamını sağlayacak mutlak yolu
- cancellationToken
- CancellationToken
İptal belirteci
Döndürülenler
- Task<IReadOnlyList<Tuple<Lazy<ILanguageServiceProvider,ILanguageServiceProviderMetadata>,IReadOnlyCollection<FileContext>>>>
Dosya bağlamlarına sahip eşleşen Hizmetleri olan koleksiyon