IExtensionMetadataCache.TryReadFromCacheAsync<T> 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.
Reads cached entry for a given extension, section name and data moniker.
public System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataCacheResult<T>> TryReadFromCacheAsync<T> (Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken extension, string sectionName, string dataMoniker, System.Threading.CancellationToken cancellationToken);
abstract member TryReadFromCacheAsync : Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.MetadataCacheResult<'T>>
Public Function TryReadFromCacheAsync(Of T) (extension As ExtensionIdentificationToken, sectionName As String, dataMoniker As String, cancellationToken As CancellationToken) As Task(Of MetadataCacheResult(Of T))
Type Parameters
- T
Target type to use for serialization.
Parameters
- extension
- ExtensionIdentificationToken
Extension identifier.
- sectionName
- String
Section name to query.
- dataMoniker
- String
Data type moniker.
- cancellationToken
- CancellationToken
Cancellation token to monitor.
Returns
a MetadataCacheResult<T> instance.