PostSharp4.3/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 methodCreateArgumentException
Creates an ArgumentException with an error message formatted from ErrorMessage and given concrete values.
Protected methodCreateArgumentNullException
Creates an ArgumentNullException with an error message formatted from ErrorMessage and given concrete values.
Protected methodCreateArgumentOutOfRangeException
Creates an ArgumentOutOfRangeException with an error message formatted from ErrorMessage and given concrete values.
Protected methodCreatePostconditionFailedException
Creates an PostconditionFailedException with an error message formatted from ErrorMessage and given concrete values.
Protected methodFormatErrorMessage
Formats the ErrorMessage with concrete values.
Protected methodGetErrorMessage
Gets unformatted error message as defined by the instance.
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.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also