PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesLocation­Validation­Advice
Open sandboxFocus

LocationValidationAdvice Class

Custom attribute that, when applied on a method of an aspect class, specifies that this method has the same semantic as the ValidateValue(T, String, LocationKind, LocationValidationContext) method of the ILocationValidationAspect<T> interface.

Inheritance
System.Object
LocationValidationAdvice
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
[RequiresMethodExecutionAdviceAnalysis]
[RequiresDebuggerEnhancement]
public class LocationValidationAdvice : GroupingAdvice
Remarks

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.

Constructors

Name Description
LocationValidationAdvice()

Properties

Name Description
Priority

Determines a priority for selecting a validation method from a group when more than one method matches the target element type. A method with a lower value has priority over a method with a higher value.

See Also