IMetaDataEmit::SetEventProps Method
Sets or updates the specified feature of an event defined by a prior call to IMetaDataEmit::DefineEvent Method.
HRESULT SetEventProps (
[in] mdEvent ev,
[in] DWORD dwEventFlags,
[in] mdToken tkEventType,
[in] mdMethodDef mdAddOn,
[in] mdMethodDef mdRemoveOn,
[in] mdMethodDef mdFire,
[in] mdMethodDef rmdOtherMethods[]
);
Parameters
Parameter | Description |
---|---|
ev |
[in] The event token. |
dwEventFlags |
[in] Event flags. |
tkEventType |
[in] The token for the event class. |
mdAddOn |
[in] The method used to subscribe to the event, or null. |
mdRemoveOn |
[in] The method used to unsubscribe to the event, or null. |
mdFire |
[in] The method used (by a derived class) to raise the event. |
rmdOtherMethods[] |
[in] An array of tokens for other methods associated with the event. |
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: Cor.h
Library: Used as a resource in Mscoree.dll
.NET Framework Version: 2.0, 1.1, 1.0