Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSEventArgsCollection Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents the events received by the Event Manager. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.PSEventArgsCollection

public class PSEventArgsCollection : IEnumerable<PSEventArgs>, 
	IEnumerable

NameDescription
System_CAPS_pubmethodPSEventArgsCollection()

Initializes a new instance of the PSEventArgsCollection class. This constructor is introduced by Windows PowerShell 2.0.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of events in the collection. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyItem[Int32]

Gets an event at the specified location of the collection. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySyncRoot

Gets the synchronization root of the collection that can be used to control access to the collection. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Retrieves an enumerator of the collection. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveAt(Int32)

Removes an event from the specified location of the collection. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventPSEventReceived

Occurs when an event is received. This event is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Retrieves a non-generic enumerator of the collection.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: