PropertyConstraintException-Klasse
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Stellt die Eigenschaftseinschränkungs-Ausnahmeklasse dar. Beachten Sie, dass diese Klasse einen Zustand aufweist. Selbst wenn Sie die internen Werte ändern, kann dies eine wichtige Änderung sein.
Vererbungshierarchie
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.ConstraintException
System.Data.Entity.Core.PropertyConstraintException
Namespace: System.Data.Entity.Core
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<SerializableAttribute> _
<SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification := "SerializeObjectState used instead")> _
Public NotInheritable Class PropertyConstraintException _
Inherits ConstraintException
'Usage
Dim instance As PropertyConstraintException
[SerializableAttribute]
[SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "SerializeObjectState used instead")]
public sealed class PropertyConstraintException : ConstraintException
[SerializableAttribute]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1032:ImplementStandardExceptionConstructors", Justification = L"SerializeObjectState used instead")]
public ref class PropertyConstraintException sealed : public ConstraintException
[<SealedAttribute>]
[<SerializableAttribute>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "SerializeObjectState used instead")>]
type PropertyConstraintException =
class
inherit ConstraintException
end
public final class PropertyConstraintException extends ConstraintException
Der PropertyConstraintException-Typ macht die folgenden Member verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
PropertyConstraintException() | Initialisiert eine neue Instanz der PropertyConstraintException-Klasse. | |
PropertyConstraintException(String) | Initialisiert eine neue Instanz der PropertyConstraintException-Klasse. | |
PropertyConstraintException(String, Exception) | Initialisiert eine neue Instanz der PropertyConstraintException-Klasse mit angegebener Meldung und interner Ausnahme. | |
PropertyConstraintException(String, String) | Initialisiert eine neue Instanz der PropertyConstraintException-Klasse. | |
PropertyConstraintException(String, String, Exception) | Initialisiert eine neue Instanz der PropertyConstraintException-Klasse. |
Oben
Eigenschaften
Name | Beschreibung | |
---|---|---|
Data | (Von Exception geerbt.) | |
HelpLink | (Von Exception geerbt.) | |
HResult | (Von Exception geerbt.) | |
InnerException | (Von Exception geerbt.) | |
Message | (Von Exception geerbt.) | |
PropertyName | Ruft den Namen der Eigenschaft ab, die die Einschränkung verletzt hat. | |
Source | (Von Exception geerbt.) | |
StackTrace | (Von Exception geerbt.) | |
TargetSite | (Von Exception geerbt.) |
Oben
Methoden
Name | Beschreibung | |
---|---|---|
Equals | (Von Object geerbt.) | |
GetBaseException | (Von Exception geerbt.) | |
GetHashCode | (Von Object geerbt.) | |
GetObjectData | Sicherheitsrelevant. (Von Exception geerbt.) | |
GetType | (Von Exception geerbt.) | |
ToString | (Von Exception geerbt.) |
Oben
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.