NoNullAllowedException Konstruktorer

Definition

Initierar en ny instans av NoNullAllowedException klassen.

Överlagringar

Name Description
NoNullAllowedException()

Initierar en ny instans av NoNullAllowedException klassen.

NoNullAllowedException(String)

Initierar en ny instans av NoNullAllowedException klassen med den angivna strängen.

NoNullAllowedException(SerializationInfo, StreamingContext)
Föråldrad.

Initierar en ny instans av NoNullAllowedException klassen med serialiseringsinformation.

NoNullAllowedException(String, Exception)

Initierar en ny instans av NoNullAllowedException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.

NoNullAllowedException()

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Initierar en ny instans av NoNullAllowedException klassen.

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

Gäller för

NoNullAllowedException(String)

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Initierar en ny instans av NoNullAllowedException klassen med den angivna strängen.

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

Parametrar

s
String

Strängen som ska visas när undantaget utlöses.

Gäller för

NoNullAllowedException(SerializationInfo, StreamingContext)

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Varning

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

Initierar en ny instans av NoNullAllowedException klassen med serialiseringsinformation.

protected:
 NoNullAllowedException(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 NoNullAllowedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected NoNullAllowedException(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.NoNullAllowedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.NoNullAllowedException
new System.Data.NoNullAllowedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.NoNullAllowedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametrar

info
SerializationInfo

De data som krävs för att serialisera eller deserialisera ett objekt.

context
StreamingContext

Beskrivning av källan och målet för den angivna serialiserade strömmen.

Attribut

Se även

Gäller för

NoNullAllowedException(String, Exception)

Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs
Källa:
DataException.cs

Initierar en ny instans av NoNullAllowedException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.

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

Parametrar

message
String

Felmeddelandet som förklarar orsaken till undantaget.

innerException
Exception

Undantaget som är orsaken till det aktuella undantaget eller en null-referens (Nothing i Visual Basic) om inget inre undantag har angetts.

Gäller för