Compartilhar via


RunspaceOpenModuleLoadException Constructors

Definition

Overloads

RunspaceOpenModuleLoadException()

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with the message set to typeof(ScriptBlockToPowerShellNotSupportedException).FullName.

RunspaceOpenModuleLoadException(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message.

RunspaceOpenModuleLoadException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of RunspaceOpenModuleLoadException with serialization parameters.

RunspaceOpenModuleLoadException(String, Exception)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message and innerException.

RunspaceOpenModuleLoadException()

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with the message set to typeof(ScriptBlockToPowerShellNotSupportedException).FullName.

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

Applies to

RunspaceOpenModuleLoadException(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

RunspaceOpenModuleLoadException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of RunspaceOpenModuleLoadException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

RunspaceOpenModuleLoadException(String, Exception)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message and innerException.

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

Parameters

message
String

The exception's message.

innerException
Exception

The exception's inner exception.

Applies to