IFileEntitySource.TryGetSingleCacheFileEntityAsync Method

Definition

Tries to generate a CacheFileEntity from a given raw value.

C#
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheFileEntity?> TryGetSingleCacheFileEntityAsync(object rawValue, System.Threading.CancellationToken cancellationToken);

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

Produkt Verzie
Visual Studio SDK 2022