Редагувати

Поділитися через


InstanceNotFoundException Constructors

Definition

Initializes a new instance of the InstanceNotFoundException class.

Overloads

InstanceNotFoundException()

Initializes a new instance of the InstanceNotFoundException class.

InstanceNotFoundException(String)

Initializes a new instance of the InstanceNotFoundException class with its message string set to message.

InstanceNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the InstanceNotFoundException class with the specified serialization information and streaming context.

InstanceNotFoundException(String, Exception)

Initializes a new instance of the InstanceNotFoundException class with the specified error message and the inner exception.

InstanceNotFoundException()

Initializes a new instance of the InstanceNotFoundException class.

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

Applies to

InstanceNotFoundException(String)

Initializes a new instance of the InstanceNotFoundException class with its message string set to message.

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)

Parameters

message
String

A string that contains the error message that explains the reason for the exception.

Applies to

InstanceNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the InstanceNotFoundException class with the specified serialization information and streaming context.

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)

Parameters

info
SerializationInfo

The SerializationInfo that contains all the data required to serialize the exception.

context
StreamingContext

The StreamingContext that specifies the source and destination of the stream.

Applies to

InstanceNotFoundException(String, Exception)

Initializes a new instance of the InstanceNotFoundException class with the specified error message and the inner exception.

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)

Parameters

message
String

A string that contains the error message that explains the reason for the exception.

innerException
Exception

The Exception that caused the current exception to be thrown.

Applies to