Share via


IFileEntitySource.TryGetSingleCacheFileEntityAsync Method

Definition

Tries to generate a CacheFileEntity from a given raw value.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheFileEntity?> TryGetSingleCacheFileEntityAsync (object rawValue, System.Threading.CancellationToken cancellationToken);
abstract member TryGetSingleCacheFileEntityAsync : obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheFileEntity>
Public Function TryGetSingleCacheFileEntityAsync (rawValue As Object, cancellationToken As CancellationToken) As Task(Of CacheFileEntity)

Parameters

rawValue
Object

The raw value, generally coming from Tag1 or Tag2. Note that the value may have be coming from a ICacheInvalidator that you do not own, meaning that the value can be of a type you do not expect.

cancellationToken
CancellationToken

Cancellation token to cancel the task.

Returns

Returns a null value if nothing could be created.

Applies to