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

The ProtectedAttribute type exposes the following members.

Methods
  Name Description
Public method ValidateCode
Validates the constraint.
(Overrides ReferentialConstraint.ValidateCode(Object, Assembly).)
Public method ValidateConstraint
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).)
Extension Methods
  Name Description
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also