This topic has not yet been rated - Rate this topic

PSJobProxy.Create Method (RunspacePool, Hashtable, Boolean)

Creates a collection of job proxies to interact with jobs that are filtered from a runspace pool, with the option to start the data streaming immediately.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
'Usage
Dim runspacePool As RunspacePool
Dim filter As Hashtable
Dim receiveImmediately As Boolean
Dim returnValue As ICollection(Of PSJobProxy)

returnValue = PSJobProxy.Create(runspacePool, filter, receiveImmediately)
public static ICollection<PSJobProxy> Create (
	RunspacePool runspacePool,
	Hashtable filter,
	bool receiveImmediately
)
public static ICollection<PSJobProxy> Create (
	RunspacePool runspacePool, 
	Hashtable filter, 
	boolean receiveImmediately
)
public static function Create (
	runspacePool : RunspacePool, 
	filter : Hashtable, 
	receiveImmediately : boolean
) : ICollection<PSJobProxy>

Parameters

runspacePool

The runspace pool that contains the jobs to base the proxy on.

filter

The hash table to use with the –Filter < Hashtable > parameter of the Get-Job cmdlet.

receiveImmediately

true to start the data streaming immediately; false to require the user to call ReceiveJob to start data streaming.

Return Value

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

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.