IEventControl interface

Controls the behavior of an event object, the object that fires an event to its subscribers.

The IEventControl interface differs from the IMultiInterfaceEventControl interface in that it supports only one interface for the event object.

When to implement

You do not need to implement the IEventControl interface. When you register an event publisher, COM+ Events creates an event object class that implements the defined event interface and IEventControl.

When to use

Use IEventControl to specify the way an event object fires its events.

Members

The IEventControl interface inherits from the IDispatch interface. IEventControl also has these types of members:

Methods

The IEventControl interface has these methods.

MethodDescription
GetSubscriptions

Retrieves the collection of subscriptions associated with an event method.

SetDefaultQuery

Sets the default query to determine subscribers.

SetPublisherFilter

Assigns a publisher filter to an event method.

 

Properties

The IEventControl interface has these properties.

PropertyAccess typeDescription

AllowInprocActivation

Read/write

Indicates whether subscribers can be activated in the publisher's process.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Eventsys.h

IDL

Eventsys.idl

 

 

Community Additions

ADD
Show: