PostSharp 4.3 / / Post­Sharp Documentation / 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
  Name Description
Protected method CreateArgumentException
Creates an ArgumentException with an error message formatted from ErrorMessage and given concrete values.
Protected method CreateArgumentNullException
Creates an ArgumentNullException with an error message formatted from ErrorMessage and given concrete values.
Protected method CreateArgumentOutOfRangeException
Creates an ArgumentOutOfRangeException with an error message formatted from ErrorMessage and given concrete values.
Protected method CreatePostconditionFailedException
Creates an PostconditionFailedException with an error message formatted from ErrorMessage and given concrete values.
Protected method FormatErrorMessage
Formats the ErrorMessage with concrete values.
Protected method GetErrorMessage
Gets unformatted error message as defined by the instance.
Protected method GetErrorMessageArguments
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
  Name Description
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also