ISolutionCacheService.TryGetContainerAsync 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.
Tries to get the list of items in a cache container entry.
public:
System::Threading::Tasks::Task<Microsoft::VisualStudio::RpcContracts::Caching::CacheContainer ^> ^ TryGetContainerAsync(Microsoft::VisualStudio::RpcContracts::Caching::CacheContainerKey ^ containerKey, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Caching.CacheContainer?> TryGetContainerAsync (Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey containerKey, System.Threading.CancellationToken cancellationToken);
abstract member TryGetContainerAsync : Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Caching.CacheContainer>
Public Function TryGetContainerAsync (containerKey As CacheContainerKey, cancellationToken As CancellationToken) As Task(Of CacheContainer)
Parameters
- containerKey
- CacheContainerKey
Cache container key that describes the container.
- cancellationToken
- CancellationToken
Cancellation token to monitor.
Returns
An instance CacheContainer or null if entry is not found.
Exceptions
Thrown when caller has no read permissions.