PSJobProxy.Create PSJobProxy.Create Method

Definition

Overloads

Create(Runspace) Create(Runspace)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(RunspacePool) Create(RunspacePool)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(Runspace, Hashtable) Create(Runspace, Hashtable)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(RunspacePool, Hashtable) Create(RunspacePool, Hashtable)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(Runspace, Hashtable, Boolean) Create(Runspace, Hashtable, Boolean)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(RunspacePool, Hashtable, Boolean) Create(RunspacePool, Hashtable, Boolean)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(Runspace, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>) Create(Runspace, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(RunspacePool, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>) Create(RunspacePool, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

Create(Runspace) Create(Runspace)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.Runspace runspace);
static member Create : System.Management.Automation.Runspaces.Runspace -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspace
Runspace Runspace

Runspace containing the jobs to base the proxy on.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Create(RunspacePool) Create(RunspacePool)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.RunspacePool runspacePool);
static member Create : System.Management.Automation.Runspaces.RunspacePool -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspacePool
RunspacePool RunspacePool

RunspacePool containing the jobs to base the proxy on.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Create(Runspace, Hashtable) Create(Runspace, Hashtable)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.Runspace runspace, System.Collections.Hashtable filter);
static member Create : System.Management.Automation.Runspaces.Runspace * System.Collections.Hashtable -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspace
Runspace Runspace

Runspace containing the jobs to base the proxy on.

filter
Hashtable Hashtable

Hashtable to use for the Get-Job -filter command.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Create(RunspacePool, Hashtable) Create(RunspacePool, Hashtable)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.RunspacePool runspacePool, System.Collections.Hashtable filter);
static member Create : System.Management.Automation.Runspaces.RunspacePool * System.Collections.Hashtable -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspacePool
RunspacePool RunspacePool

RunspacePool containing the jobs to base the proxy on.

filter
Hashtable Hashtable

Hashtable to use for the Get-Job -filter command.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Create(Runspace, Hashtable, Boolean) Create(Runspace, Hashtable, Boolean)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.Runspace runspace, System.Collections.Hashtable filter, bool receiveImmediately);
static member Create : System.Management.Automation.Runspaces.Runspace * System.Collections.Hashtable * bool -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspace
Runspace Runspace

Runspace containing the jobs to base the proxy on.

filter
Hashtable Hashtable

Hashtable to use for the Get-Job -filter command.

receiveImmediately
Boolean Boolean

If true, the data streaming will start immediately. If false, the user must call "ReceiveJob()" to start data streaming.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Create(RunspacePool, Hashtable, Boolean) Create(RunspacePool, Hashtable, Boolean)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.RunspacePool runspacePool, System.Collections.Hashtable filter, bool receiveImmediately);
static member Create : System.Management.Automation.Runspaces.RunspacePool * System.Collections.Hashtable * bool -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspacePool
RunspacePool RunspacePool

RunspacePool containing the jobs to base the proxy on.

filter
Hashtable Hashtable

Hashtable to use for the Get-Job -filter command.

receiveImmediately
Boolean Boolean

If true, the data streaming will start immediately. If false, the user must call "ReceiveJob()" to start data streaming.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Create(Runspace, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>) Create(Runspace, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.Runspace runspace, System.Collections.Hashtable filter, EventHandler<System.Management.Automation.JobDataAddedEventArgs> dataAdded, EventHandler<System.Management.Automation.JobStateEventArgs> stateChanged);
static member Create : System.Management.Automation.Runspaces.Runspace * System.Collections.Hashtable * EventHandler<System.Management.Automation.JobDataAddedEventArgs> * EventHandler<System.Management.Automation.JobStateEventArgs> -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspace
Runspace Runspace

Runspace containing the jobs to base the proxy on.

filter
Hashtable Hashtable

Hashtable to use for the Get-Job -filter command.

dataAdded
EventHandler<JobDataAddedEventArgs>

Handler to subscribe to any child job data added events.

stateChanged
EventHandler<JobStateEventArgs>

Handler to subscribe to any child job state changed events.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Create(RunspacePool, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>) Create(RunspacePool, Hashtable, EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>)

Queries the runspace for jobs and constructs a collection of job proxies to interact with them.

public static System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy> Create (System.Management.Automation.Runspaces.RunspacePool runspacePool, System.Collections.Hashtable filter, EventHandler<System.Management.Automation.JobDataAddedEventArgs> dataAdded, EventHandler<System.Management.Automation.JobStateEventArgs> stateChanged);
static member Create : System.Management.Automation.Runspaces.RunspacePool * System.Collections.Hashtable * EventHandler<System.Management.Automation.JobDataAddedEventArgs> * EventHandler<System.Management.Automation.JobStateEventArgs> -> System.Collections.Generic.ICollection<System.Management.Automation.PSJobProxy>
Parameters
runspacePool
RunspacePool RunspacePool

RunspacePool containing the jobs to base the proxy on.

filter
Hashtable Hashtable

Hashtable to use for the Get-Job -filter command.

dataAdded
EventHandler<JobDataAddedEventArgs>

Handler to subscribe to any child job data added events.

stateChanged
EventHandler<JobStateEventArgs>

Handler to subscribe to any child job state changed events.

Returns

A collection of job proxies that represent the jobs collected based on the filter.

Applies to