JAMS Developer Guide
GetPSHost Method


MVPSI.JAMS.Activities.PowerShell Namespace > PSWorkflowHost Class : GetPSHost Method
Returns a PowerShell runspace
Syntax
'Declaration
 
Public Shared Function GetPSHost( _
   ByVal context As System.Activities.NativeActivityContext _
) As PSWorkflowHost
'Usage
 
Dim context As System.Activities.NativeActivityContext
Dim value As PSWorkflowHost
 
value = PSWorkflowHost.GetPSHost(context)
public static PSWorkflowHost GetPSHost( 
   System.Activities.NativeActivityContext context
)

Parameters

context
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