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.9.11.0 (6.9.11.0)
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.