IFileEntitySource.TryGetSingleCacheFileEntityAsync 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 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.