InstanceNotFoundException Konstruktorer

Definition

Initierar en ny instans av klassen InstanceNotFoundException.

Överlagringar

Name Description
InstanceNotFoundException()

Initierar en ny instans av klassen InstanceNotFoundException.

InstanceNotFoundException(String)

Initierar en ny instans av klassen InstanceNotFoundException med meddelandesträngen inställd på meddelande.

InstanceNotFoundException(SerializationInfo, StreamingContext)

Initierar en ny instans av klassen InstanceNotFoundException med den angivna serialiseringsinformationen och strömningskontexten.

InstanceNotFoundException(String, Exception)

Initierar en ny instans av klassen InstanceNotFoundException med det angivna felmeddelandet och det inre undantaget.

InstanceNotFoundException()

Initierar en ny instans av klassen InstanceNotFoundException.

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

Gäller för

InstanceNotFoundException(String)

Initierar en ny instans av klassen InstanceNotFoundException med meddelandesträngen inställd på meddelande.

public:
 InstanceNotFoundException(System::String ^ message);
public InstanceNotFoundException(string message);
new System.Management.Instrumentation.InstanceNotFoundException : string -> System.Management.Instrumentation.InstanceNotFoundException
Public Sub New (message As String)

Parametrar

message
String

En sträng som innehåller felmeddelandet som förklarar orsaken till undantaget.

Gäller för

InstanceNotFoundException(SerializationInfo, StreamingContext)

Initierar en ny instans av klassen InstanceNotFoundException med den angivna serialiseringsinformationen och strömningskontexten.

protected:
 InstanceNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InstanceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Instrumentation.InstanceNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Instrumentation.InstanceNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametrar

info
SerializationInfo

SerializationInfo som innehåller alla data som krävs för att serialisera undantaget.

context
StreamingContext

StreamingContext som anger källan och målet för strömmen.

Gäller för

InstanceNotFoundException(String, Exception)

Initierar en ny instans av klassen InstanceNotFoundException med det angivna felmeddelandet och det inre undantaget.

public:
 InstanceNotFoundException(System::String ^ message, Exception ^ innerException);
public InstanceNotFoundException(string message, Exception innerException);
new System.Management.Instrumentation.InstanceNotFoundException : string * Exception -> System.Management.Instrumentation.InstanceNotFoundException
Public Sub New (message As String, innerException As Exception)

Parametrar

message
String

En sträng som innehåller felmeddelandet som förklarar orsaken till undantaget.

innerException
Exception

Undantaget som gjorde att det aktuella undantaget utlöstes.

Gäller för