PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / Less­Than­Attribute Class / Less­Than­Attribute Methods / Less­Than­Attribute.​Get­Error­Message­Arguments Method

LessThanAttribute.GetErrorMessageArguments Method

Note: This API is now obsolete.

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: 2023.0.3.0 (2023.0.3.0)
[ObsoleteAttribute("Use ContractServices.ExceptionFactory.CreateException to generate error messages.")]
protected override Object[] GetErrorMessageArguments()

Return Value

Type: Object[]
An array of additional argument values.
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