InvalidJobStateException InvalidJobStateException InvalidJobStateException Constructors

Definition

Overloads

InvalidJobStateException() InvalidJobStateException()

Creates a new instance of InvalidPSJobStateException class.

InvalidJobStateException(String) InvalidJobStateException(String) InvalidJobStateException(String)

Creates a new instance of InvalidPSJobStateException class.

InvalidJobStateException(JobState, String) InvalidJobStateException(JobState, String) InvalidJobStateException(JobState, String)

Creates a new instance of InvalidJobStateException class.

InvalidJobStateException(SerializationInfo, StreamingContext) InvalidJobStateException(SerializationInfo, StreamingContext) InvalidJobStateException(SerializationInfo, StreamingContext)

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

InvalidJobStateException(String, Exception) InvalidJobStateException(String, Exception) InvalidJobStateException(String, Exception)

Creates a new instance of InvalidPSJobStateException class.

InvalidJobStateException() InvalidJobStateException()

Creates a new instance of InvalidPSJobStateException class.

public InvalidJobStateException ();
Public Sub New ()

InvalidJobStateException(String) InvalidJobStateException(String) InvalidJobStateException(String)

Creates a new instance of InvalidPSJobStateException class.

public InvalidJobStateException (string message);
new System.Management.Automation.InvalidJobStateException : string -> System.Management.Automation.InvalidJobStateException
Public Sub New (message As String)
Parameters
message
String String String

The error message that explains the reason for the exception.

InvalidJobStateException(JobState, String) InvalidJobStateException(JobState, String) InvalidJobStateException(JobState, String)

Creates a new instance of InvalidJobStateException class.

public InvalidJobStateException (System.Management.Automation.JobState currentState, string actionMessage);
new System.Management.Automation.InvalidJobStateException : System.Management.Automation.JobState * string -> System.Management.Automation.InvalidJobStateException
Public Sub New (currentState As JobState, actionMessage As String)
Parameters
currentState
JobState JobState JobState

The Job State at the time of the error.

actionMessage
String String String

An additional message that gives more information about the error. Used for context after a generalized error message.

InvalidJobStateException(SerializationInfo, StreamingContext) InvalidJobStateException(SerializationInfo, StreamingContext) InvalidJobStateException(SerializationInfo, StreamingContext)

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

protected InvalidJobStateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.InvalidJobStateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.InvalidJobStateException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
info
SerializationInfo SerializationInfo SerializationInfo

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

context
StreamingContext StreamingContext StreamingContext

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

InvalidJobStateException(String, Exception) InvalidJobStateException(String, Exception) InvalidJobStateException(String, Exception)

Creates a new instance of InvalidPSJobStateException class.

public InvalidJobStateException (string message, Exception innerException);
new System.Management.Automation.InvalidJobStateException : string * Exception -> System.Management.Automation.InvalidJobStateException
Public Sub New (message As String, innerException As Exception)
Parameters
message
String String String

The error message that explains the reason for the exception.

innerException
Exception Exception Exception

The exception that is the cause of the current exception.

Applies to