Applies runtime reflection policy to an event.
<Event Name="event_name" Browse="policy_type" Dynamic="policy_type" />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
||General||Required attribute. Specifies the event name.|
||Reflection||Optional attribute. Controls querying for information about or enumerating the event but does not enable any dynamic access at run time.|
||Reflection||Optional attribute. Controls runtime access to the event to enable dynamic programming. This policy ensures that an event can be handled dynamically at run time.|
|method_name||The event name. The type of the event is defined by the parent <Type> or <TypeInstantiation> element.|
All other attributes
|policy_setting||The setting to apply to this policy type for the event. Possible values are
|<Type>||Applies reflection policy to a type and all its members.|
|<TypeInstantiation>||Applies reflection policy to a constructed generic type and all its members.|
If an event's policy is not explicitly defined, it inherits the runtime policy of its parent element.