Nyelv

ConstraintException Konstruktorok

Definíció

Inicializálja a ConstraintException osztály új példányát.

Túlterhelések

Name Description
ConstraintException()

Inicializálja a ConstraintException osztály új példányát. Ez a paraméter nélküli konstruktor.

ConstraintException(String)

Inicializálja az osztály új példányát ConstraintException a megadott sztringgel.

ConstraintException(SerializationInfo, StreamingContext)
Elavult.

Inicializálja az osztály új példányát a ConstraintException megadott szerializálási és streamkörnyezet használatával.

ConstraintException(String, Exception)

Inicializálja az osztály új példányát a ConstraintException megadott sztring és belső kivétel használatával.

ConstraintException()

Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs

Inicializálja a ConstraintException osztály új példányát. Ez a paraméter nélküli konstruktor.

public:
 ConstraintException();
public ConstraintException();
Public Sub New ()

A következőre érvényes:

ConstraintException(String)

Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs

Inicializálja az osztály új példányát ConstraintException a megadott sztringgel.

public:
 ConstraintException(System::String ^ s);
public ConstraintException(string? s);
public ConstraintException(string s);
new System.Data.ConstraintException : string -> System.Data.ConstraintException
Public Sub New (s As String)

Paraméterek

s
String

A kivétel megjelenésekor megjelenítendő sztring.

A következőre érvényes:

ConstraintException(SerializationInfo, StreamingContext)

Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs

Figyelemfelhívás

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Inicializálja az osztály új példányát a ConstraintException megadott szerializálási és streamkörnyezet használatával.

protected:
 ConstraintException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ConstraintException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected ConstraintException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Data.ConstraintException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.ConstraintException
new System.Data.ConstraintException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.ConstraintException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Paraméterek

info
SerializationInfo

Az objektumok szerializálásához vagy deszerializálásához szükséges adatok.

context
StreamingContext

A megadott szerializált stream forrásának és céljának leírása.

Attribútumok

A következőre érvényes:

ConstraintException(String, Exception)

Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs
Forrás:
DataException.cs

Inicializálja az osztály új példányát a ConstraintException megadott sztring és belső kivétel használatával.

public:
 ConstraintException(System::String ^ message, Exception ^ innerException);
public ConstraintException(string? message, Exception? innerException);
public ConstraintException(string message, Exception innerException);
new System.Data.ConstraintException : string * Exception -> System.Data.ConstraintException
Public Sub New (message As String, innerException As Exception)

Paraméterek

message
String

A kivétel megjelenésekor megjelenítendő sztring.

innerException
Exception

Lekéri az Exception aktuális kivételt okozó példányt.

A következőre érvényes: