Class ValidationMessage
QR bill validation message.
Inheritance
Inherited Members
Namespace: Codecrete.SwissQRBill.Generator
Assembly: Codecrete.SwissQRBill.Core.dll
Syntax
public sealed class ValidationMessage
Constructors
| Improve this Doc View SourceValidationMessage()
Initializes a new instance with null
values.
Declaration
public ValidationMessage()
ValidationMessage(ValidationMessage.MessageType, String, String, String[])
Initializes a new instance with the given values.
For valid field names and message keys, see the constants in the ValidationConstants class.
Declaration
public ValidationMessage(ValidationMessage.MessageType type, string field, string messageKey, string[] messageParameters = null)
Parameters
Type | Name | Description |
---|---|---|
ValidationMessage.MessageType | type | The message type. |
System.String | field | The name of the affected field. |
System.String | messageKey | The language-neutral message key. |
System.String[] | messageParameters | The optional variable text parts to be inserted into localized message. |
See Also
Properties
| Improve this Doc View SourceField
Gets or sets the name of the affected field.
All field names are available as constants of the ValidationConstants class.
Fields nested in data structures are given like a path using the dot as a separator,
e.g. creditor.name
for the creditor name.
Declaration
public string Field { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the affected field. |
See Also
| Improve this Doc View SourceMessageKey
Gets or sets the language neutral key of the message.
All message keys are available as constants of the ValidationConstants class.
Declaration
public string MessageKey { get; set; }
Property Value
Type | Description |
---|---|
System.String | The message key. |
See Also
| Improve this Doc View SourceMessageParameters
Gets additional message parameters (text) that are inserted into the localized message.
Declaration
public string[] MessageParameters { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The message parameters (if any) or |
Type
Gets or sets the type of message.
Declaration
public ValidationMessage.MessageType Type { get; set; }
Property Value
Type | Description |
---|---|
ValidationMessage.MessageType | The message type. |