Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / Greater­Than­Attribute Class / Greater­Than­Attribute Methods

GreaterThanAttribute Methods

The GreaterThanAttribute type exposes the following members.

Methods
  NameDescription
Public methodCompileTimeValidate(Object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from RangeAttribute.)
Protected methodCompileTimeValidate(LocationInfo)
Validates that the current aspect has been applied to a valid location.
(Inherited from LocationContractAttribute.)
Protected methodCreateArgumentException
Creates an ArgumentException with an error message formatted from ErrorMessage and given concrete values.
(Inherited from LocationContractAttribute.)
Protected methodCreateArgumentNullException
Creates an ArgumentNullException with an error message formatted from ErrorMessage and given concrete values.
(Inherited from LocationContractAttribute.)
Protected methodCreateArgumentOutOfRangeException
Creates an ArgumentOutOfRangeException with an error message formatted from ErrorMessage and given concrete values.
(Inherited from LocationContractAttribute.)
Protected methodCreatePostconditionFailedException
Creates an PostconditionFailedException with an error message formatted from ErrorMessage and given concrete values.
(Inherited from LocationContractAttribute.)
Protected methodFormatErrorMessage
Formats the ErrorMessage with concrete values.
(Inherited from LocationContractAttribute.)
Protected methodGetErrorMessage
Gets unformatted error message as defined by the instance.
(Overrides RangeAttribute.GetErrorMessage().)
Protected methodGetErrorMessageArguments
Gets values of additional arguments for error message associated with particular instance of LocationContractAttribute. There arguments can be referenced from error message string by {4}, {5} and so on.
(Overrides RangeAttribute.GetErrorMessageArguments().)
Public methodRuntimeInitialize
Initializes the aspect at runtime.
(Inherited from LocationContractAttribute.)
Protected methodSelectSelfOrNothing
A pointcut that selects the target location of the current aspect, unless the target location is a dependency property or an attached property.
(Inherited from LocationContractAttribute.)
Public methodValidateValueDynamic
Validates a weakly-typed (boxed) value, typically the value of a dependency property or an attached property.
(Inherited from RangeAttribute.)
See Also