__AggregateEvent class
Applies to: desktop apps only
The __AggregateEvent system class represents an aggregate event of several individual intrinsic or extrinsic events. WMI generates an instance of __AggregateEvent rather than __Event when consumers register with the GROUP WITHIN clause in their event query.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.
Syntax
class __AggregateEvent : __IndicationRelated
{
uint32 NumberOfEvents;
object Representative;
};
Members
The __AggregateEvent class inherits from __IndicationRelated. __AggregateEvent also has these types of members:
Properties
The __AggregateEvent class has these properties.
- NumberOfEvents
-
- Data type: uint32
- Access type: Read-only
Number of events combined to produce this single summary event.
- Representative
-
- Data type: object
- Access type: Read-only
Copy of one of the events delivered within the aggregation interval. For example, if a consumer has registered for registry key change events from the Registry Event provider, Representative would hold an instance of the RegistryKeyChangeEvent class.
Remarks
The __AggregateEvent class is derived from __IndicationRelated, which has no properties.
Event providers never generate aggregate events. They must ignore the GROUP WITHIN clause in their processing of event queries.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Namespace |
all WMI namespaces |
See also
Send comments about this topic to Microsoft
Build date: 3/9/2012