共用方式為


3.1.4.2 IEventClass

The IEventClass interface provides methods that are used by the client to manipulate an event class on the server. The interface inherits Opnums 0 to 6 from IDispatch as specified in [MS-OAUT] section 3.1.4. The version for this interface is 0.0.

To receive incoming remote calls for this interface, the server MUST implement a DCOM object class with the class ID CLSID_EventClass (see section 1.9) using the UUID {fb2b72a0-7a68-11d1-88f9-0080c7d771bf} for this interface.

The interface includes the following methods beyond those in IDispatch.

Methods in RPC Opnum Order

Method

Description

EventClassID

Gets the EventClassID property for the event class.

Opnum: 7

EventClassID

Sets the EventClassID property for the event class.

Opnum: 8

EventClassName

Gets the EventClassName property of the event class.

Opnum: 9

EventClassName

Sets the EventClassName property of the event class.

Opnum: 10

OwnerSID

Gets the OwnerSID property of the event class.

Opnum: 11

OwnerSID

Sets the OwnerSID property of the event class.

Opnum: 12

FiringInterfaceID

Gets the FiringInterfaceID property for the event class.

Opnum: 13

FiringInterfaceID

Sets the FiringInterfaceID property for the event class.

Opnum: 14

Description

Gets the Description property for the event class.

Opnum: 15

Description

Sets the Description property for the event class.

Opnum: 16

Opnum17NotUsedOnWire

Reserved for local use.

Opnum: 17

Opnum18NotUsedOnWire

Reserved for local use.

Opnum: 18

TypeLib

Gets the Typelib property of the event class.

Opnum: 19

TypeLib

Sets the Typelib property of the event class.

Opnum: 20

In the preceding table, the term "Reserved for local use" means that the client MUST NOT send the opnum, and the server behavior is undefined<12> because it does not affect interoperability.