Share via


PSJob.ChildJobs Property

Gets the PSJob objects for each runspace where the job is run, plus the object that defines the job.

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

Usage

Syntax

'Declaration
Public ReadOnly Property ChildJobs As IList(Of PSJob)
public IList<PSJob> ChildJobs { get; }
public:
property IList<PSJob^>^ ChildJobs {
    IList<PSJob^>^ get ();
}
/** @property */
public IList<PSJob> get_ChildJobs ()
public function get ChildJobs () : IList<PSJob>

Property Value

A list of PSJob objects for each runspace where the job is run, plus the object that defines the job. For example, if the job is run in five runspaces, this property will contain a list of six PSJob objects, 5 objects for the runspaces and one object for the job definition. Notice also that the ChildJobs property will always return at least one PSJob object that defines the job.

Thread Safety

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

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

PSJob Class
PSJob Members
System.Management.Automation Namespace