Class PropertyError
Represents an error.
Implements
Namespace: Sartorius.SAF.Validation
Assembly: Sartorius.SAF.dll
Syntax
[Serializable]
[Obsolete("Use ValidationAttributes or ObservableObject.OnValidate.")]
public class PropertyError : Error, IError
Constructors
View SourcePropertyError(Guid, object, string, string)
Creates a new instance of the PropertyError class.
Declaration
public PropertyError(Guid id, object source, string errorText, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The error id. |
| object | source | The error source. |
| string | errorText | The error text. |
| string | fieldName | The name of the field (property that caused the error. |
PropertyError(Guid, string, string)
Creates a new instance of the PropertyError class.
Declaration
public PropertyError(Guid id, string errorText, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The error id. |
| string | errorText | The error text. |
| string | fieldName | The name of the field (property that caused the error. |
PropertyError(string, string)
Creates a new instance of the PropertyError class with a new Guid as unique identifier.
Declaration
public PropertyError(string errorText, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | errorText | The error text. |
| string | fieldName | The name of the field (property that caused the error. |
Properties
View SourceFieldName
The fieldname that is associated with the error.
Declaration
public string FieldName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |