PSEventJob PSEventJob PSEventJob Class

Definition

A class to give a job-like interface to event actions

public class PSEventJob : System.Management.Automation.Job
type PSEventJob = class
    inherit Job
Public Class PSEventJob
Inherits Job
Inheritance
PSEventJobPSEventJobPSEventJob

Constructors

PSEventJob(PSEventManager, PSEventSubscriber, ScriptBlock, String) PSEventJob(PSEventManager, PSEventSubscriber, ScriptBlock, String) PSEventJob(PSEventManager, PSEventSubscriber, ScriptBlock, String)

Creates a new instance of the PSEventJob class.

The event manager that controls the event subscriptions The subscriber that generates these actions The script block invoked for this event The name of the job

Properties

ChildJobs ChildJobs ChildJobs Inherited from Job
Command Command Command Inherited from Job
Debug Debug Debug Inherited from Job
Error Error Error Inherited from Job
Finished Finished Finished Inherited from Job
HasMoreData HasMoreData HasMoreData

indicates if more data is available

Id Id Id Inherited from Job
Information Information Information Inherited from Job
InstanceId InstanceId InstanceId Inherited from Job
JobStateInfo JobStateInfo JobStateInfo Inherited from Job
Location Location Location

Location in which this job is running

Module Module Module

Gets dynamic module where the action is invoked

Name Name Name Inherited from Job
Output Output Output Inherited from Job
PSBeginTime PSBeginTime PSBeginTime Inherited from Job
PSEndTime PSEndTime PSEndTime Inherited from Job
PSJobTypeName PSJobTypeName PSJobTypeName Inherited from Job
Progress Progress Progress Inherited from Job
StatusMessage StatusMessage StatusMessage

Message indicating status of the job

Verbose Verbose Verbose Inherited from Job
Warning Warning Warning Inherited from Job

Methods

AutoGenerateJobName() AutoGenerateJobName() AutoGenerateJobName() Inherited from Job
Dispose() Dispose() Dispose() Inherited from Job
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Inherited from Job
DoLoadJobStreams() DoLoadJobStreams() DoLoadJobStreams() Inherited from Job
DoUnloadJobStreams() DoUnloadJobStreams() DoUnloadJobStreams() Inherited from Job
LoadJobStreams() LoadJobStreams() LoadJobStreams() Inherited from Job
SetJobState(JobState) SetJobState(JobState) SetJobState(JobState) Inherited from Job
StopJob() StopJob() StopJob()

Stop Job

UnloadJobStreams() UnloadJobStreams() UnloadJobStreams() Inherited from Job

Events

StateChanged StateChanged StateChanged Inherited from Job

Applies to