PostSharp.ILAPI ReferencePost­Sharp.​ConstraintsProtected­AttributeValidate­Constraint
Open sandboxFocus

ProtectedAttribute.ValidateConstraint Method

ValidateConstraint(Object)

Validates the fact that the constraint has been applied on a valid element of code. When this method returns false, the constraint is silently ignored.

Declaration
public override bool ValidateConstraint(object target)
Parameters
Type Name Description
Object target
Returns
Type Description
System.Boolean

true if the constraint has been applied on a valid element of code, otherwise false.

Overrides
Constraint.ValidateConstraint(Object)