This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

LocationContractAttribute.ErrorMessage Property

Gets or sets the error message formatting string.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.33.0 (5.0.33.0)
Syntax
C#
public string ErrorMessage { get; set; }

Property Value

Type: String
Remarks

See remarks on LocationContractAttribute for information about message parameters.

If the value of this property is set to

Property Value

Type: String
null, GetErrorMessage() will be used to obtain the error message.

Set this property only for legacy purposes. Otherwise, use GetErrorMessage() method.

See Also