Compartir a través de


InvalidRunspaceStateException Constructors

Definition

Overloads

InvalidRunspaceStateException()

Initializes a new instance of InvalidRunspaceStateException.

InvalidRunspaceStateException(String)

Initializes a new instance of InvalidRunspaceStateException with a specified error message.

InvalidRunspaceStateException(SerializationInfo, StreamingContext)
Obsolete.

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

InvalidRunspaceStateException(String, Exception)

Initializes a new instance of the InvalidRunspaceStateException class with a specified error message and a reference to the inner exception that is the cause of this exception.

InvalidRunspaceStateException()

Initializes a new instance of InvalidRunspaceStateException.

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

Applies to

InvalidRunspaceStateException(String)

Initializes a new instance of InvalidRunspaceStateException with a specified error message.

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

Parameters

message
String

The message that describes the error.

Applies to

InvalidRunspaceStateException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

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

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

InvalidRunspaceStateException(String, Exception)

Initializes a new instance of the InvalidRunspaceStateException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to