PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Location­Contract­Attribute Class/Location­Contract­Attribute Methods/Location­Contract­Attribute.​Get­Error­Message­Arguments Method

LocationContractAttribute.GetErrorMessageArguments Method

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.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
protected virtual Object[] GetErrorMessageArguments()

Return Value

Type: Object[]
An array of additional argument values.
Remarks
This method is expected to be pure, i.e. it's result can be cached and so the implementer should not return information that may change after constructor of the class has finished.
See Also