ScriptBlockToPowerShellConversionForbiddenException Constructor (String, Exception)

Initializes a new instance of the ScriptBlockToPowerShellConversionForbiddenException class with an exception message and the inner exception that caused this exception to be thrown.

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

Usage

Syntax

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

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