MulticastNotSupportedException Konstruktorer

Definition

Initierar en ny instans av MulticastNotSupportedException klassen.

Överlagringar

Name Description
MulticastNotSupportedException()

Initierar en ny instans av MulticastNotSupportedException klassen.

MulticastNotSupportedException(String)

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

MulticastNotSupportedException(String, Exception)

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

MulticastNotSupportedException()

Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs

Initierar en ny instans av MulticastNotSupportedException klassen.

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

Kommentarer

Den här konstruktorn initierar egenskapen för den nya instansen Message till ett meddelande från systemet som beskriver felet, till exempel "Den här åtgärden kan inte utföras med de angivna ombuden". Det här meddelandet tar hänsyn till den aktuella systemkulturen.

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

Fastighet Value
InnerException En null-referens (Nothing i Visual Basic).
Message Den lokaliserade felmeddelandesträngen.

Gäller för

MulticastNotSupportedException(String)

Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs

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

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

Parametrar

message
String

Meddelandet som beskriver felet.

Kommentarer

Innehållet i parametern message bör vara begripligt för användaren. Anroparen för den här konstruktorn krävs för att säkerställa att den här strängen har lokaliserats för den aktuella systemkulturen.

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

Fastighet Value
InnerException En null-referens (Nothing i Visual Basic).
Message Felmeddelandesträngen.

Gäller för

MulticastNotSupportedException(String, Exception)

Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs
Källa:
MulticastNotSupportedException.cs

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

public:
 MulticastNotSupportedException(System::String ^ message, Exception ^ inner);
public MulticastNotSupportedException(string? message, Exception? inner);
public MulticastNotSupportedException(string message, Exception inner);
new MulticastNotSupportedException : string * Exception -> MulticastNotSupportedException
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 är en null-referens (Nothing i Visual Basic) 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 en nullreferens (Nothing i Visual Basic) om egenskapen InnerException inte anger det inre undantagsvärdet till konstruktorn.

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

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

Se även

Gäller för