NotImplementedException Konstruktorer

Definition

Initierar en ny instans av NotImplementedException klassen.

Överlagringar

Name Description
NotImplementedException()

Initierar en ny instans av NotImplementedException klassen med standardegenskaper.

NotImplementedException(String)

Initierar en ny instans av NotImplementedException klassen med ett angivet felmeddelande.

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

Initierar en ny instans av NotImplementedException klassen med serialiserade data.

NotImplementedException(String, Exception)

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

NotImplementedException()

Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs

Initierar en ny instans av NotImplementedException klassen med standardegenskaper.

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

Kommentarer

I följande tabell visas de inledande egenskapsvärdena för en instans av NotImplementedException.

Fastighet Value
InnerException null.
Message Den tomma strängen ("").

Gäller för

NotImplementedException(String)

Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs

Initierar en ny instans av NotImplementedException klassen med ett angivet felmeddelande.

public:
 NotImplementedException(System::String ^ message);
public NotImplementedException(string message);
public NotImplementedException(string? message);
new NotImplementedException : string -> NotImplementedException
Public Sub New (message As String)

Parametrar

message
String

Felmeddelandet som förklarar orsaken till undantaget.

Kommentarer

I följande tabell visas de inledande egenskapsvärdena för en instans av NotImplementedException.

Fastighet Value
InnerException null.
Message Felmeddelandesträngen.

Gäller för

NotImplementedException(SerializationInfo, StreamingContext)

Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs

Varning

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

Initierar en ny instans av NotImplementedException klassen med serialiserade data.

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

Parametrar

info
SerializationInfo

Det SerializationInfo som innehåller serialiserade objektdata om undantaget som genereras.

context
StreamingContext

Som StreamingContext innehåller kontextuell information om källan eller målet.

Attribut

Gäller för

NotImplementedException(String, Exception)

Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs
Källa:
NotImplementedException.cs

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

public:
 NotImplementedException(System::String ^ message, Exception ^ inner);
public NotImplementedException(string message, Exception inner);
public NotImplementedException(string? message, Exception? inner);
new NotImplementedException : string * Exception -> NotImplementedException
Public Sub New (message As String, inner As Exception)

Parametrar

message
String

Felmeddelandet som förklarar orsaken till undantaget.

inner
Exception

Undantaget som är orsaken till det aktuella undantaget. Om parametern inner inte nullär genereras det aktuella undantaget i ett catch block som hanterar det inre undantaget.

Kommentarer

Ett undantag som genereras som ett direkt resultat av ett tidigare undantag bör innehålla en referens till det tidigare undantaget i InnerException egenskapen. Egenskapen InnerException returnerar samma värde som skickas till konstruktorn, eller null om InnerException egenskapen inte anger det inre undantagsvärdet till konstruktorn.

I följande tabell visas de inledande egenskapsvärdena för en instans av NotImplementedException.

Fastighet Value
InnerException Den inre undantagsreferensen.
Message Felmeddelandesträngen.

Gäller för