PostSharp5.0/API Reference/Post­Sharp.​Constraints Namespace/Parameter­Value­Constraint Class/Parameter­Value­Constraint Methods

ParameterValueConstraint Methods

The ParameterValueConstraint type exposes the following members.

Methods
  NameDescription
Protected methodValidateParameterValue
Validates the value passed to the parameter.
Protected methodValidateTargetParameter
Validates the parameter to which the current constraint has been applied. A typical use of this method is to validate the parameter type. Overriding implementations should call the base implementation.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also