다음을 통해 공유


RunspaceOpenModuleLoadException Class

Definition

Defines the exception thrown an error loading modules occurs while opening the runspace. It contains a list of all of the module errors that have occurred.

public ref class RunspaceOpenModuleLoadException : System::Management::Automation::RuntimeException
[System.Serializable]
public class RunspaceOpenModuleLoadException : System.Management.Automation.RuntimeException
public class RunspaceOpenModuleLoadException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type RunspaceOpenModuleLoadException = class
    inherit RuntimeException
type RunspaceOpenModuleLoadException = class
    inherit RuntimeException
Public Class RunspaceOpenModuleLoadException
Inherits RuntimeException
Inheritance
RunspaceOpenModuleLoadException
Attributes

Constructors

RunspaceOpenModuleLoadException()

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

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(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message.

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
ErrorRecords

The collection of error records generated while loading the modules.

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the RunspaceOpenModuleLoadException object.

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to