PSEventManager.GenerateEvent PSEventManager.GenerateEvent PSEventManager.GenerateEvent Method

Definition

Overloads

GenerateEvent(String, Object, Object[], PSObject) GenerateEvent(String, Object, Object[], PSObject) GenerateEvent(String, Object, Object[], PSObject)

Generate a PowerShell event.

An optional identifier that identifies the source event The object that generated this event Any event-specific data associated with the event. Any additional data you wish to attach to the event
GenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean) GenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean) GenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean)

Generate a PowerShell event.

An optional identifier that identifies the source event The object that generated this event Any event-specific data associated with the event. Any additional data you wish to attach to the event True if the event should be triggered in current thread. False for the event to be triggered in a separate thread. Wait for the event and associated action to be processed and completed.

GenerateEvent(String, Object, Object[], PSObject) GenerateEvent(String, Object, Object[], PSObject) GenerateEvent(String, Object, Object[], PSObject)

Generate a PowerShell event.

An optional identifier that identifies the source event The object that generated this event Any event-specific data associated with the event. Any additional data you wish to attach to the event
public System.Management.Automation.PSEventArgs GenerateEvent (string sourceIdentifier, object sender, object[] args, System.Management.Automation.PSObject extraData);
member this.GenerateEvent : string * obj * obj[] * System.Management.Automation.PSObject -> System.Management.Automation.PSEventArgs
Public Function GenerateEvent (sourceIdentifier As String, sender As Object, args As Object(), extraData As PSObject) As PSEventArgs
Parameters
sourceIdentifier
String String String
args
Object[]
Returns

GenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean) GenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean) GenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean)

Generate a PowerShell event.

An optional identifier that identifies the source event The object that generated this event Any event-specific data associated with the event. Any additional data you wish to attach to the event True if the event should be triggered in current thread. False for the event to be triggered in a separate thread. Wait for the event and associated action to be processed and completed.
public System.Management.Automation.PSEventArgs GenerateEvent (string sourceIdentifier, object sender, object[] args, System.Management.Automation.PSObject extraData, bool processInCurrentThread, bool waitForCompletionInCurrentThread);
member this.GenerateEvent : string * obj * obj[] * System.Management.Automation.PSObject * bool * bool -> System.Management.Automation.PSEventArgs
Public Function GenerateEvent (sourceIdentifier As String, sender As Object, args As Object(), extraData As PSObject, processInCurrentThread As Boolean, waitForCompletionInCurrentThread As Boolean) As PSEventArgs
Parameters
sourceIdentifier
String String String
args
Object[]
processInCurrentThread
Boolean Boolean Boolean
waitForCompletionInCurrentThread
Boolean Boolean Boolean
Returns

Applies to