Sdílet prostřednictvím


CimJobException Constructors

Definition

Overloads

CimJobException()

Initializes a new instance of the CimJobException class.

CimJobException(String)

Initializes a new instance of the CimJobException class with a specified error message.

CimJobException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the CimJobException class with serialized data.

CimJobException(String, Exception)

Initializes a new instance of the CimJobException class with a specified error message.

CimJobException()

Initializes a new instance of the CimJobException class.

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

Applies to

CimJobException(String)

Initializes a new instance of the CimJobException class with a specified error message.

public:
 CimJobException(System::String ^ message);
public:
 CimJobException(Platform::String ^ message);
 CimJobException(std::wstring const & message);
public CimJobException (string message);
new Microsoft.PowerShell.Cmdletization.Cim.CimJobException : string -> Microsoft.PowerShell.Cmdletization.Cim.CimJobException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

CimJobException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of the CimJobException class with serialized data.

protected:
 CimJobException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CimJobException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected CimJobException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.PowerShell.Cmdletization.Cim.CimJobException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PowerShell.Cmdletization.Cim.CimJobException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new Microsoft.PowerShell.Cmdletization.Cim.CimJobException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PowerShell.Cmdletization.Cim.CimJobException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Attributes

Applies to

CimJobException(String, Exception)

Initializes a new instance of the CimJobException class with a specified error message.

public:
 CimJobException(System::String ^ message, Exception ^ inner);
public CimJobException (string message, Exception inner);
new Microsoft.PowerShell.Cmdletization.Cim.CimJobException : string * Exception -> Microsoft.PowerShell.Cmdletization.Cim.CimJobException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The message that describes the error.

inner
Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Applies to