ScriptBlockToPowerShellNotSupportedException Class

Definition

Defines the exception thrown when conversion from ScriptBlock to PowerShell is forbidden (i.e. when the script block has undeclared variables or more than one statement)

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

Constructors

ScriptBlockToPowerShellNotSupportedException()

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

ScriptBlockToPowerShellNotSupportedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with serialization parameters.

ScriptBlockToPowerShellNotSupportedException(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message.

ScriptBlockToPowerShellNotSupportedException(String, Exception)

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

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to