IExtensionMetadataCache.GetExtensionsAsync(String, CancellationToken) 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.
Gets the extensions for a given data moniker type.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionCacheEntry>?> GetExtensionsAsync (string dataMoniker, System.Threading.CancellationToken cancellationToken);
abstract member GetExtensionsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionCacheEntry>>
Public Function GetExtensionsAsync (dataMoniker As String, cancellationToken As CancellationToken) As Task(Of IReadOnlyCollection(Of ExtensionCacheEntry))
Parameters
- dataMoniker
- String
Data type moniker.
- cancellationToken
- CancellationToken
Cancellation token to monitor.
Returns
a collection of ExtensionCacheEntry for valid extensions or null if cache is not valid.