Udostępnij za pośrednictwem


PSEventManager.CreateEvent(String, Object, Object[], PSObject) Method

Definition

Creates a PowerShell event.

protected:
 abstract System::Management::Automation::PSEventArgs ^ CreateEvent(System::String ^ sourceIdentifier, System::Object ^ sender, cli::array <System::Object ^> ^ args, System::Management::Automation::PSObject ^ extraData);
protected abstract System.Management.Automation.PSEventArgs CreateEvent (string sourceIdentifier, object sender, object[] args, System.Management.Automation.PSObject extraData);
abstract member CreateEvent : string * obj * obj[] * System.Management.Automation.PSObject -> System.Management.Automation.PSEventArgs
Protected MustOverride Function CreateEvent (sourceIdentifier As String, sender As Object, args As Object(), extraData As PSObject) As PSEventArgs

Parameters

sourceIdentifier
String

An optional identifier that identifies the source event

sender
Object

The object that generated this event

args
Object[]

Any event-specific data associated with the event.

extraData
PSObject

Any additional data you wish to attach to the event

Returns

Applies to