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.

PSEvent Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a .NET Framework event on an object that can be surfaced by using the Get-Member cmdlet. 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.PSMemberInfo
    System.Management.Automation.PSEvent

public class PSEvent : PSMemberInfo

NameDescription
System_CAPS_pubpropertyIsInstance

Gets a value that indicates whether the source of the member is a type configuration file.(Inherited from PSMemberInfo.)

System_CAPS_pubpropertyMemberType

Gets an identifier that indicates that this object is an event member of a PSObject object. This property is introduced in Windows PowerShell 2.0.(Overrides PSMemberInfo.MemberType.)

System_CAPS_pubpropertyName

Gets the name of the extended member (method, property, or member set).(Inherited from PSMemberInfo.)

System_CAPS_pubpropertyTypeNameOfValue

Gets the .NET Framework type of the event. This property is introduced in Windows PowerShell 2.0.(Overrides PSMemberInfo.TypeNameOfValue.)

System_CAPS_pubpropertyValue

Gets and sets information that describes the event. This property is introduced in Windows PowerShell 2.0.(Overrides PSMemberInfo.Value.)

NameDescription
System_CAPS_pubmethodCopy()

Creates an exact copy of the current PSEvent object. This method is introduced in Windows PowerShell 2.0.(Overrides PSMemberInfo.Copy().)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSetMemberName(String)

Sets the name of the extended member. This method is introduced in Windows PowerShell 2.0.(Inherited from PSMemberInfo.)

System_CAPS_pubmethodToString()

Generates a string representation of the current PSEvent object. This method is introduced in Windows PowerShell 2.0.(Overrides Object.ToString().)

Events can also be surfaced by $object.PsObject.Members.

$timer = New-Object Timers.Timer
/>$timer.PsObject.Members | ? { $_.MemberType -eq "Event" }

Although it is possible to derive from this class, there is no established scenario for doing this and any attempt to do so might result in unexpected behavior.

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: