ScheduledJob Members

Represents a scheduled job. This class cannot be inherited. Introduced in Windows PowerShell 3.0.

The following tables list the members exposed by the ScheduledJob type.

Public Constructors

  Name Description
  ScheduledJob Initializes a new instance of the ScheduledJob class. Introduced in Windows PowerShell 3.0.

Top

Public Properties

(see also Protected Properties)

  Name Description
public property ChildJobs  Gets a list of the child jobs included in this job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property Command Gets the command string for the scheduled job. Introduced in Windows PowerShell 3.0.
public property Debug  Gets and sets the buffer where debug information is stored. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property Definition Gets the definition of the scheduled job. Introduced in Windows PowerShell 3.0.
public property Error  Gets and sets the buffer where error information is stored. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property Finished  Gets the wait handle that is signaled when job is finished. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property HasMoreData Overridden. Indicates whether more data is available from the scheduled job. Introduced in Windows PowerShell 3.0.
public property Id  Gets the identifier of the job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property InstanceId  Gets the identifier of this instance of the job. The instance identifier of the job is unique throughout all runspaces. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property JobStateInfo  Gets the status of the job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property Location Overridden. Gets the location of the scheduled job. Introduced in Windows PowerShell 3.0.
public property Name  Gets and sets the name that can be used to identify the job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property Output  Gets and sets the output buffer for the job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property Progress  Gets and sets the progress buffer for the job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property PSBeginTime  Gets or sets when to begin the job. Introduced in Windows PowerShell 3.0. (Inherited from Job)
public property PSEndTime  Gets or sets when to end the job. Introduced in Windows PowerShell 3.0. (Inherited from Job)
public property PSJobTypeName  Gets or sets the job type name. Introduced in Windows PowerShell 3.0. (Inherited from Job)
public property StartParameters  Gets or sets the parameters that are used to start a job. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
public property StatusMessage Overridden. Gets the status message associated with the scheduled job. Introduced in Windows PowerShell 3.0.
public property Verbose  Gets and sets the verbose buffer for the job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)
public property Warning  Gets and sets the warning buffer for the job. This property is introduced in Windows PowerShell 2.0. (Inherited from Job)

Top

Protected Properties

  Name Description
protected property SyncRoot  TBD Introduced in Windows PowerShell 3.0. (Inherited from Job2)

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Dispose  Overloaded. Releases the resources that are used by the Job object. These methods implement the Dispose pattern used to release managed and unmanaged resources. This method is introduced in Windows PowerShell 2.0. (Inherited from Job)
public method Equals  (Inherited from Object)
public method GetHashCode  (Inherited from Object)
public method GetObjectData Populates an object with the data needed to serialize the scheduled job. Introduced in Windows PowerShell 3.0.
public method GetType  (Inherited from Object)
public method LoadJobStreams  Loads the required job streams. Introduced in Windows PowerShell 3.0. (Inherited from Job)
public method ResumeJob Overridden. Not supported. Introduced in Windows PowerShell 3.0.
public method ResumeJobAsync Overridden. Not supported. Introduced in Windows PowerShell 3.0.
public method StartJob Overridden. Starts a scheduled job as defined by the contained ScheduledJobDefinition object. Introduced in Windows PowerShell 3.0.
public method StartJobAsync Overridden. Not supported. Introduced in Windows PowerShell 3.0.
public method StopJob Overloaded. Overridden. Stops the scheduled job from running. Introduced in Windows PowerShell 3.0.
public method StopJobAsync Overloaded. Overridden. Asynchronously stops the scheduled job from running. Introduced in Windows PowerShell 3.0.
public method SuspendJob Overloaded. Overridden. Not supported. Introduced in Windows PowerShell 3.0.
public method SuspendJobAsync Overloaded. Overridden. Not supported. Introduced in Windows PowerShell 3.0.
public method ToString  (Inherited from Object)
public method UnblockJob Overridden. Not supported. Introduced in Windows PowerShell 3.0.
public method UnblockJobAsync Overridden. Not supported. Introduced in Windows PowerShell 3.0.
public method UnloadJobStreams  Unloads the required job streams. Introduced in Windows PowerShell 3.0. (Inherited from Job)

Top

Protected Methods

(see also Extension Methods)

  Name Description
protected method AutoGenerateJobName  Automatically adds the specified job name if the user does not supply one when creating the job. This method is introduced in Windows PowerShell 2.0. (Inherited from Job)
protected method Dispose  Overloaded. Releases the resources that are used by the Job object. These methods implement the Dispose pattern used to release managed and unmanaged resources. This method is introduced in Windows PowerShell 2.0. (Inherited from Job)
protected method DoLoadJobStreams  Specifies the loading of the streams for a particular job. Introduced in Windows PowerShell 3.0. (Inherited from Job)
protected method DoUnloadJobStreams  Unloads job stream information, which enables jobs to clear stream information from memory. Introduced in Windows PowerShell 3.0. (Inherited from Job)
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
protected method OnResumeJobCompleted  Raises the event when resuming a suspended job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
protected method OnStartJobCompleted  Raises the event when the starting of a job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
protected method OnStopJobCompleted  Raises the event when the stopping of a job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
protected method OnSuspendJobCompleted  Raises the event when the suspending of a job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
protected method OnUnblockJobCompleted  Raises the event when the unblocking of a blocked job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
protected method SetJobState  Sets the status of the job, such as is it running, has it completed, or has it failed. This method is introduced in Windows PowerShell 2.0. (Inherited from Job)
protected method SetJobState  Stores the state of the job. Introduced in Windows PowerShell 3.0. (Inherited from Job2)

Top

Extension Methods

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)

Top

Public Events

  Name Description
public event ResumeJobCompleted  Occurs when the asynchronous resuming of a suspended job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
public event StartJobCompleted  Occurs when the start job activity is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
public event StateChanged  Event fired when the status of the job changes, such as when the job has completed in all runspaces or failed in any one runspace. This event is introduced in Windows PowerShell 2.0. (Inherited from Job)
public event StopJobCompleted  Occurs when the asynchronous stopping of a job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
public event SuspendJobCompleted  Occurs when the asynchronous suspending of a job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)
public event UnblockJobCompleted  Occurs when the asynchronous unblocking of a blocked job is completed. Introduced in Windows PowerShell 3.0. (Inherited from Job2)

Top

See Also

Reference

ScheduledJob Class
Microsoft.PowerShell.ScheduledJob Namespace