Dela via


InvalidRunspacePoolStateException Constructors

Definition

Overloads

InvalidRunspacePoolStateException()

Creates a new instance of InvalidRunspacePoolStateException class.

InvalidRunspacePoolStateException(String)

Creates a new instance of InvalidRunspacePoolStateException class.

InvalidRunspacePoolStateException(SerializationInfo, StreamingContext)
Obsolete.

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

InvalidRunspacePoolStateException(String, Exception)

Creates a new instance of InvalidRunspacePoolStateException class.

InvalidRunspacePoolStateException()

Creates a new instance of InvalidRunspacePoolStateException class.

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

Applies to

InvalidRunspacePoolStateException(String)

Creates a new instance of InvalidRunspacePoolStateException class.

public:
 InvalidRunspacePoolStateException(System::String ^ message);
public:
 InvalidRunspacePoolStateException(Platform::String ^ message);
 InvalidRunspacePoolStateException(std::wstring const & message);
public InvalidRunspacePoolStateException (string message);
new System.Management.Automation.Runspaces.InvalidRunspacePoolStateException : string -> System.Management.Automation.Runspaces.InvalidRunspacePoolStateException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

InvalidRunspacePoolStateException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

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

protected:
 InvalidRunspacePoolStateException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InvalidRunspacePoolStateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected InvalidRunspacePoolStateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.Runspaces.InvalidRunspacePoolStateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Runspaces.InvalidRunspacePoolStateException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.Runspaces.InvalidRunspacePoolStateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Runspaces.InvalidRunspacePoolStateException
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

InvalidRunspacePoolStateException(String, Exception)

Creates a new instance of InvalidRunspacePoolStateException class.

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

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception.

Applies to