Class PropertyError
Represents an error.
Implements
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
System.Guid | id | The error id. |
System.Object | source | The error source. |
System.String | errorText | The error text. |
System.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 |
---|---|---|
System.Guid | id | The error id. |
System.String | errorText | The error text. |
System.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 System.Guid as unique identifier.
Declaration
public PropertyError(string errorText, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorText | The error text. |
System.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 |
---|---|
System.String |