Condividi tramite


InvalidJobStateException Class

Definition

Defines exception which is thrown when state of the PSJob is different from the expected state.

public ref class InvalidJobStateException : SystemException
[System.Serializable]
public class InvalidJobStateException : SystemException
public class InvalidJobStateException : SystemException
[<System.Serializable>]
type InvalidJobStateException = class
    inherit SystemException
type InvalidJobStateException = class
    inherit SystemException
Public Class InvalidJobStateException
Inherits SystemException
Inheritance
InvalidJobStateException
Attributes

Constructors

InvalidJobStateException()

Creates a new instance of InvalidPSJobStateException class.

InvalidJobStateException(JobState, String)

Creates a new instance of InvalidJobStateException class.

InvalidJobStateException(SerializationInfo, StreamingContext)
Obsolete.

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

InvalidJobStateException(String, Exception)

Creates a new instance of InvalidPSJobStateException class.

InvalidJobStateException(String)

Creates a new instance of InvalidPSJobStateException class.

Properties

CurrentState

Gets CurrentState of the Job.

Applies to