ScriptBlockToPowerShellConversionForbiddenException Class

The exception that is thrown when a ScriptBlock object cannot be converted to a PowerShell object.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)

Usage

Syntax

'Declaration
<SerializableAttribute> _
Public Class ScriptBlockToPowerShellConversionForbiddenException
    Inherits RuntimeException
[SerializableAttribute] 
public class ScriptBlockToPowerShellConversionForbiddenException : RuntimeException
[SerializableAttribute] 
public ref class ScriptBlockToPowerShellConversionForbiddenException : public RuntimeException
/** @attribute SerializableAttribute() */ 
public class ScriptBlockToPowerShellConversionForbiddenException extends RuntimeException
SerializableAttribute 
public class ScriptBlockToPowerShellConversionForbiddenException extends RuntimeException

Remarks

For more information about this conversion, see the GetPowerShell method.

Inheritance Hierarchy

System.Object
   System.Exception
     System.SystemException
       System.Management.Automation.RuntimeException
        System.Management.Automation.ScriptBlockToPowerShellConversionForbiddenException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP

See Also

Reference

ScriptBlockToPowerShellConversionForbiddenException Members
System.Management.Automation Namespace