ScriptBlockToPowerShellNotSupportedException ScriptBlockToPowerShellNotSupportedException 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
type ScriptBlockToPowerShellNotSupportedException = class
    inherit RuntimeException
Public Class ScriptBlockToPowerShellNotSupportedException
Inherits RuntimeException
Inheritance
ScriptBlockToPowerShellNotSupportedExceptionScriptBlockToPowerShellNotSupportedExceptionScriptBlockToPowerShellNotSupportedException

Constructors

ScriptBlockToPowerShellNotSupportedException() ScriptBlockToPowerShellNotSupportedException() ScriptBlockToPowerShellNotSupportedException()

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

ScriptBlockToPowerShellNotSupportedException(SerializationInfo, StreamingContext) ScriptBlockToPowerShellNotSupportedException(SerializationInfo, StreamingContext) ScriptBlockToPowerShellNotSupportedException(SerializationInfo, StreamingContext)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException with serialization parameters

ScriptBlockToPowerShellNotSupportedException(String) ScriptBlockToPowerShellNotSupportedException(String) ScriptBlockToPowerShellNotSupportedException(String)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message

ScriptBlockToPowerShellNotSupportedException(String, Exception) ScriptBlockToPowerShellNotSupportedException(String, Exception) ScriptBlockToPowerShellNotSupportedException(String, Exception)

Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message and innerException

Properties

ErrorRecord ErrorRecord ErrorRecord Inherited from RuntimeException
StackTrace StackTrace StackTrace Inherited from RuntimeException
WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) Inherited from RuntimeException

Applies to