Show / Hide Table of Contents

Class PropertyError

Represents an error.

Inheritance
System.Object
Error
PropertyError
ValidationError
Implements
IError
Error.ErrorText
Error.Id
Error.GetHashCode()
Error.Equals(Object)
Error.Equals(IError)
Error.GetSourceId()
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 Source

PropertyError(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.

View Source

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.

View Source

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 Source

FieldName

The fieldname that is associated with the error.

Declaration
public string FieldName { get; set; }
Property Value
Type Description
System.String

Implements

IError

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX