LocationValidationAdvice Class |

System.Attribute
PostSharp.Aspects.Advices.Advice
PostSharp.Aspects.Advices.GroupingAdvice
PostSharp.Aspects.Advices.LocationValidationAdvice
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)

public class LocationValidationAdvice : GroupingAdvice
The LocationValidationAdvice type exposes the following members.

Name | Description | |
---|---|---|
![]() | LocationValidationAdvice | Initializes a new instance of the LocationValidationAdvice class |

Name | Description | |
---|---|---|
![]() | Description |
A human-readable description of the current advice.
(Inherited from Advice.) |
![]() | LinesOfCodeAvoided |
Reduction in the code lines count achieved by applying the advice instance to one code element.
(Inherited from Advice.) |
![]() | Master |
Name of the master advice method. If this property is not set,
the current method is itself the master of the group. Only
master methods can define selectors (Pointcut)
and dependencies (AspectDependencyAttribute).
(Inherited from GroupingAdvice.) |

Name | Description | |
---|---|---|
![]() | QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |

The method to which this custom attribute is applied must be public and must have the same signature as ValidateValue(T, String, LocationKind, LocationValidationContext), where T can be any type. However, the method can be static.
