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 class ScriptBlockToPowerShellNotSupportedException : System.Management.Automation.RuntimeException
Inheritance
ScriptBlockToPowerShellNotSupportedException

Inherited Members

System.Management.Automation.RuntimeException

Constructors

ScriptBlockToPowerShellNotSupportedException()

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

ScriptBlockToPowerShellNotSupportedException(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message

ScriptBlockToPowerShellNotSupportedException(SerializationInfo, StreamingContext)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with serialization parameters

ScriptBlockToPowerShellNotSupportedException(String, Exception)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message and innerException