IMetaDataEmit::SetEventProps Method

Sets or updates the specified feature of an event defined by a prior call to IMetaDataEmit::DefineEvent.

Syntax

HRESULT SetEventProps (  
    [in]  mdEvent     ev,
    [in]  DWORD       dwEventFlags,
    [in]  mdToken     tkEventType,
    [in]  mdMethodDef mdAddOn,
    [in]  mdMethodDef mdRemoveOn,
    [in]  mdMethodDef mdFire,
    [in]  mdMethodDef rmdOtherMethods[]
);  

Parameters

ev
[in] The event token.

dwEventFlags
[in] Event flags. This is a bitmask of CorEventAttr values.

tkEventType
[in] The token for the event class. This is either a mdTypeDef or a mdTypeRef token.

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. The last element of the array must be mdMethodDefNil.

Requirements

Platforms: See System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: Available since 1.0

See also