ISolutionCacheService.TryGetContainerAsync Method

Definition

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.

Applies to