Show / Hide Table of Contents

Class ValidationMessage

QR bill validation message.

Inheritance
object
ValidationMessage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Codecrete.SwissQRBill.Generator
Assembly: Codecrete.SwissQRBill.Core.dll
Syntax
public sealed class ValidationMessage

Constructors

| Edit this page View Source

ValidationMessage()

Initializes a new instance with null values.

Declaration
public ValidationMessage()
| Edit this page View Source

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.

string field

The name of the affected field.

string messageKey

The language-neutral message key.

string[] messageParameters

The optional variable text parts to be inserted into localized message.

See Also
ValidationConstants

Properties

| Edit this page View Source

Field

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
string

The name of the affected field.

See Also
ValidationConstants
| Edit this page View Source

MessageKey

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
string

The message key.

See Also
ValidationConstants
| Edit this page View Source

MessageParameters

Gets additional message parameters (text) that are inserted into the localized message.

Declaration
public string[] MessageParameters { get; set; }
Property Value
Type Description
string[]

The message parameters (if any) or null.

| Edit this page View Source

Type

Gets or sets the type of message.

Declaration
public ValidationMessage.MessageType Type { get; set; }
Property Value
Type Description
ValidationMessage.MessageType

The message type.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX