Sdílet prostřednictvím


PropertyConstraintException Třída

Definice

Třída výjimky omezení vlastnosti. Všimněte si, že tato třída má stav , takže pokud změníte i její vnitřní hodnoty, může se jednat o zásadní změnu.

[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
Dědičnost
PropertyConstraintException
Atributy

Konstruktory

PropertyConstraintException()

Inicializuje novou instanci PropertyConstraintException třídy s výchozí zprávou.

PropertyConstraintException(String)

Inicializuje novou instanci PropertyConstraintException třídy se zadanou zprávou.

PropertyConstraintException(String, Exception)

Inicializuje novou instanci PropertyConstraintException třídy se zadanou zprávou a vnitřní výjimkou.

PropertyConstraintException(String, String)

Inicializuje novou instanci PropertyConstraintException třídy .

PropertyConstraintException(String, String, Exception)

Inicializuje novou instanci PropertyConstraintException třídy .

Vlastnosti

PropertyName

Získá název vlastnosti, která porušila omezení.

Platí pro