Share via


CacheInvalidationEventArgs Constructor

Definition

Initializes a new instance of the CacheInvalidationEventArgs class.

public CacheInvalidationEventArgs (Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheUpdateStrategy cacheUpdateStrategy, Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.VsState targetState, bool delayCacheFilling = false, object? tag1 = default, object? tag2 = default);
new Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheInvalidationEventArgs : Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheUpdateStrategy * Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.VsState * bool * obj * obj -> Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheInvalidationEventArgs
Public Sub New (cacheUpdateStrategy As CacheUpdateStrategy, targetState As VsState, Optional delayCacheFilling As Boolean = false, Optional tag1 As Object = Nothing, Optional tag2 As Object = Nothing)

Parameters

cacheUpdateStrategy
CacheUpdateStrategy

The kind of update that should be applied to the cache.

targetState
VsState

Whether the solution or open folder cache should be updated.

delayCacheFilling
Boolean

Indicates whether the cache update should be delayed.

tag1
Object

An object that will be passed to TryGetSingleCacheFileEntityAsync(Object, CancellationToken) if needed.

tag2
Object

An object that will be passed to TryGetSingleCacheFileEntityAsync(Object, CancellationToken) if needed.

Exceptions

Raised if there is some incoherence in the parameters

Applies to