PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Location­Contract­Attribute Class/Location­Contract­Attribute Methods

LocationContractAttribute Methods

The LocationContractAttribute type exposes the following members.

Methods
  NameDescription
Protected methodCompileTimeValidate
Validates that the current aspect has been applied to a valid location.
Protected methodCreateArgumentException Obsolete.
Creates an ArgumentException with an error message formatted from ErrorMessage and given concrete values.
Protected methodCreateArgumentNullException Obsolete.
Creates an ArgumentNullException with an error message formatted from ErrorMessage and given concrete values.
Protected methodCreateArgumentOutOfRangeException Obsolete.
Creates an ArgumentOutOfRangeException with an error message formatted from ErrorMessage and given concrete values.
Protected methodCreatePostconditionFailedException Obsolete.
Creates an PostconditionFailedException with an error message formatted from ErrorMessage and given concrete values.
Protected methodFormatErrorMessage Obsolete.
Formats the ErrorMessage with concrete values.
Protected methodGetErrorMessage Obsolete.
Gets unformatted error message as defined by the instance.
Protected methodGetErrorMessageArguments Obsolete.
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.
Public methodRuntimeInitialize
Initializes the aspect at runtime.
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.
Public methodValidateValueDynamic
Validates a weakly-typed (boxed) value, typically the value of a dependency property or an attached property.
See Also