Share via


PropertyConstraintException Class

Definition

Property constraint exception class. Note that this class has state - so if you change even its internals, it can be a breaking change

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
public sealed class PropertyConstraintException : System.Data.ConstraintException
type PropertyConstraintException = class
    inherit ConstraintException
Public NotInheritable Class PropertyConstraintException
Inherits ConstraintException
Inheritance
PropertyConstraintException
Attributes

Constructors

PropertyConstraintException()

Initializes a new instance of the PropertyConstraintException class with default message.

PropertyConstraintException(String, Exception)

Initializes a new instance of the PropertyConstraintException class with supplied message and inner exception.

PropertyConstraintException(String, String, Exception)

Initializes a new instance of the PropertyConstraintException class.

PropertyConstraintException(String, String)

Initializes a new instance of the PropertyConstraintException class.

PropertyConstraintException(String)

Initializes a new instance of the PropertyConstraintException class with supplied message.

Properties

PropertyName

Gets the name of the property that violated the constraint.

Applies to