PostSharp 6.9 / / Post­Sharp Documentation / 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: (
public InvalidateCacheAttribute(
	Type declaringType,
	params string[] methodNames


Type: System.Type
The type containing the methods to invalidate.
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