Class ValidationMessage
Represents a validation message, as returned by Validate(String, out String, out ValidationRule, NameLocalizer).
Inheritance
System.Object
ValidationMessage
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data
Assembly: TimeCockpit.Data.dll
Syntax
public class ValidationMessage
Constructors
ValidationMessage(String, IEnumerable<String>, ValidationRule)
Initializes a new instance of the ValidationMessage class.
Declaration
public ValidationMessage(string message, IEnumerable<string> participatingMembers, ValidationRule validationRule = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Collections.Generic.IEnumerable<System.String> | participatingMembers | The participating members. |
ValidationRule | validationRule | The validation rule. |
Properties
Message
Gets the message.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |
ParticipatingMembers
Gets the participating members.
Declaration
public IEnumerable<string> ParticipatingMembers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
ValidationRule
Gets the validation rule.
Declaration
public ValidationRule ValidationRule { get; }
Property Value
Type | Description |
---|---|
ValidationRule |