JAMS Developer Guide
SetShouldExit Method


MVPSI.JAMS.Activities.PowerShell Namespace > PSWorkflowHost Class : SetShouldExit Method
hen overridden in a derived class, requests to end the current runspace. The Windows PowerShell engine calls this method to request that the host application shut down and terminate the host root runspace.
Syntax
'Declaration
 
Public Overrides Sub SetShouldExit( _
   ByVal exitCode As System.Integer _
) 
'Usage
 
Dim instance As PSWorkflowHost
Dim exitCode As System.Integer
 
instance.SetShouldExit(exitCode)
public override void SetShouldExit( 
   System.int exitCode
)

Parameters

exitCode
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PSWorkflowHost Class
PSWorkflowHost Members