PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Constraints Namespace / Protected­Attribute Class / Protected­Attribute Methods

ProtectedAttribute Methods

The ProtectedAttribute type exposes the following members.

Public methodValidateCode
Validates the constraint.
(Overrides ReferentialConstraint.ValidateCode(Object, Assembly).)
Public methodValidateConstraint
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.
(Overrides Constraint.ValidateConstraint(Object).)
See Also