PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Invalidate­Cache­Attribute Class/Invalidate­Cache­Attribute Constructor/Invalidate­Cache­Attribute Constructor (Type, String[])

InvalidateCacheAttribute Constructor (Type, String[])

Initializes a new InvalidateCacheAttribute that invalidates method of a different type than the type to which the current InvalidateCacheAttribute aspect is being applied.

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public InvalidateCacheAttribute(
	Type declaringType,
	params string[] methodNames
)

Parameters

declaringType
Type: System.Type
The type containing the methods to invalidate.
methodNames
Type: System.String[]
A list of names of methods to invalidate. All parameters of these methods (except those marked with NotCacheKeyAttribute) must have a parameter of the same name and compatible type in the target method of the current InvalidateCacheAttribute aspect.
See Also