ScriptBlockToPowerShellConversionForbiddenException Constructor (String)

Initializes a new instance of the ScriptBlockToPowerShellConversionForbiddenException class with an exception message that describes the error condition.

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

Usage

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
public ScriptBlockToPowerShellConversionForbiddenException (
    string message
)
public:
ScriptBlockToPowerShellConversionForbiddenException (
    String^ message
)
public ScriptBlockToPowerShellConversionForbiddenException (
    String message
)
public function ScriptBlockToPowerShellConversionForbiddenException (
    message : String
)

Parameters

  • message
    The exception message that describes the error condition

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 Class
ScriptBlockToPowerShellConversionForbiddenException Members
System.Management.Automation Namespace

Other Resources

Windows PowerShell SDK