ContractLocalizedTextProvider Class
Base class for contract error messages providers.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Utilities.LocalizedTextProvider
    PostSharp.Patterns.Contracts.ContractLocalizedTextProvider

Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public class ContractLocalizedTextProvider : LocalizedTextProvider

The ContractLocalizedTextProvider type exposes the following members.

Constructors
  NameDescription
Public methodContractLocalizedTextProvider
Initializes a new instance of the ContractLocalizedTextProvider class
Top
Properties
  NameDescription
Public propertyStatic memberCurrent
Current instance of ContractLocalizedTextProvider.
Top
Methods
  NameDescription
Public methodFormatString
Formats a string. An implementation would typically invoke Format(String, Object[]).
(Inherited from LocalizedTextProvider.)
Public methodGetMessage (Overrides LocalizedTextProvider.GetMessage(String).)
Top
Fields
  NameDescription
Public fieldStatic memberCreditCardErrorMessage
Identifier of the error message shown when CreditCardAttribute constraint is violated.
Public fieldStatic memberEmailAddressErrorMessage
Identifier of the error message shown when EmailAddressAttribute constraint is violated.
Public fieldStatic memberEnumDataTypeErrorMessage
Identifier of the error message shown when EnumDataTypeAttribute constraint is violated.
Public fieldStatic memberGreaterThanErrorMessage
Identifier of the error message shown when GreaterThanAttribute constraint is violated.
Public fieldStatic memberLessThanErrorMessage
Identifier of the error message shown when LessThanAttribute constraint is violated.
Public fieldStatic memberLocationContractErrorMessage
Identifier of the error message shown when LocationContractAttribute constraint is violated.
Public fieldStatic memberNotEmptyErrorMessage
Identifier of the error message shown when NotEmptyAttribute constraint is violated.
Public fieldStatic memberNotNullErrorMessage
Identifier of the error message shown when NotNullAttribute constraint is violated.
Public fieldStatic memberPhoneErrorMessage
Identifier of the error message shown when PhoneAttribute constraint is violated.
Public fieldStatic memberRangeErrorMessage
Identifier of the error message shown when RangeAttribute constraint is violated.
Public fieldStatic memberRegularExpressionErrorMessage
Identifier of the error message shown when RegularExpressionAttribute constraint is violated.
Public fieldStatic memberRequiredErrorMessage
Identifier of the error message shown when RequiredAttribute constraint is violated.
Public fieldStatic memberStrictlyGreaterThanErrorMessage
Identifier of the error message shown when StrictlyGreaterThanAttribute constraint is violated.
Public fieldStatic memberStrictlyLessThanErrorMessage
Identifier of the error message shown when StrictlyLessThanAttribute constraint is violated.
Public fieldStatic memberStringLengthMaxErrorMessage
Identifier of the error message shown when StringLengthAttribute constraint is violated (only maximum length was specified).
Public fieldStatic memberStringLengthMinErrorMessage
Identifier of the error message shown when StringLengthAttribute constraint is violated (only minimum length was specified).
Public fieldStatic memberStringLengthRangeErrorMessage
Identifier of the error message shown when StringLengthAttribute constraint is violated (both minimum and maximum was specified).
Public fieldStatic memberUrlErrorMessage
Identifier of the error message shown when UrlAttribute constraint is violated.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also