ScriptBlockToPowerShellNotSupportedException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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, Exception) |
Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message and innerException. |
ScriptBlockToPowerShellNotSupportedException(String) |
Initializes a new instance of ScriptBlockToPowerShellNotSupportedException setting the message. |
Properties
ErrorRecord |
Additional information about the error. (Inherited from RuntimeException) |
WasThrownFromThrowStatement | (Inherited from RuntimeException) |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
Serializer for ISerializable (Inherited from RuntimeException) |