PSEventManager.CreateEvent(String, Object, Object[], PSObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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