__EventConsumerProviderRegistration class

The __EventConsumerProviderRegistration system class registers event consumer providers with WMI.

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 __EventConsumerProviderRegistration : __ProviderRegistration
{
  string     ConsumerClassNames[];
  __Provider REF provider;
};

Members

The __EventConsumerProviderRegistration class has these types of members:

Properties

The __EventConsumerProviderRegistration class has these properties.

ConsumerClassNames
Data type: string array
Access type: Read/write

Array of names of the logical consumer classes that the event consumer provider supports.

provider
Data type: __Provider
Access type: Read/write
Qualifiers: Key

Object path to the provider. This property is inherited from __ProviderRegistration.

Remarks

The __EventConsumerProviderRegistration class is derived from __ProviderRegistration.

Windows Server 2003:  Only administrators can register or delete an event consumer provider by creating an instance of __Win32Provider and __EventConsumerProviderRegistration.

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 XP

Minimum supported server

Windows Server 2003

Namespace

all WMI namespaces

See also

WMI System Classes
Registering an Event Consumer Provider
Writing an Event Consumer Provider

 

 

Show:
© 2014 Microsoft