GefObjectEvents.Count (read-only property)

Gets the number of objects in the collection.
Syntax: long = object.Count
Description: The Count property gets the number of configured events.

Example:

Sub GefObjectEvents_Count()
    
    Dim oCimObj As GefObject
    Dim oCimObjEvnts As GefObjectEvents
    
    Set oCimObj = CimGetObject
    Set oCimObjEvnts = oCimObj.Events
    
    MsgBox "The number of events on this object is " & _
        oCimObjEvnts.Count
    
End Sub