Show / Hide Table of Contents

Interface IEventInfoIntrospectionProvider

Interface representing a reflection provider used to introspect System.Reflection.EventInfo objects.

Inherited Members
IMemberInfoIntrospectionProvider.GetCustomAttributesData(MemberInfo)
IMemberInfoIntrospectionProvider.GetCustomAttributes(MemberInfo, Boolean)
IMemberInfoIntrospectionProvider.GetCustomAttributes(MemberInfo, Type, Boolean)
IMemberInfoIntrospectionProvider.GetDeclaringType(MemberInfo)
IMemberInfoIntrospectionProvider.GetMetadataToken(MemberInfo)
IMemberInfoIntrospectionProvider.GetModule(MemberInfo)
IMemberInfoIntrospectionProvider.GetName(MemberInfo)
IMemberInfoIntrospectionProvider.GetReflectedType(MemberInfo)
IMemberInfoIntrospectionProvider.IsDefined(MemberInfo, Type, Boolean)
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface IEventInfoIntrospectionProvider : IMemberInfoIntrospectionProvider

Methods

GetAddMethod(EventInfo, Boolean)

Retrieves the System.Reflection.MethodInfo object for the System.Reflection.EventInfo.AddEventHandler(System.Object,System.Delegate) method of the event, specifying whether to return non-public methods.

Declaration
MethodInfo GetAddMethod(EventInfo event, bool nonPublic)
Parameters
Type Name Description
System.Reflection.EventInfo event

The event to get the add method for.

System.Boolean nonPublic

true if non-public methods can be returned; otherwise, false.

Returns
Type Description
System.Reflection.MethodInfo

A System.Reflection.MethodInfo object representing the method used to add an event handler delegate from the event source.

GetAttributes(EventInfo)

Gets the attributes associated with the specified event.

Declaration
EventAttributes GetAttributes(EventInfo event)
Parameters
Type Name Description
System.Reflection.EventInfo event

The event to get the attributes for.

Returns
Type Description
System.Reflection.EventAttributes

The attributes associated with the specified event.

GetEventHandlerType(EventInfo)

Gets the type of the event handler.

Declaration
Type GetEventHandlerType(EventInfo event)
Parameters
Type Name Description
System.Reflection.EventInfo event

The event to get the event handler type for.

Returns
Type Description
System.Type

The type of the event handler.

GetOtherMethods(EventInfo, Boolean)

Returns the public methods that have been associated with an event in metadata using the .other directive.

Declaration
IReadOnlyList<MethodInfo> GetOtherMethods(EventInfo event, bool nonPublic)
Parameters
Type Name Description
System.Reflection.EventInfo event

The event to get the associated methods for.

System.Boolean nonPublic

true if non-public methods can be returned; otherwise, false.

Returns
Type Description
System.Collections.Generic.IReadOnlyList<System.Reflection.MethodInfo>

An array of System.Reflection.MethodInfo objects representing the public methods that have been associated with the event in metadata by using the .other directive. If there are no such public methods, an empty array is returned.

GetRaiseMethod(EventInfo, Boolean)

Returns the method that is called when the event is raised, specifying whether to return non-public methods.

Declaration
MethodInfo GetRaiseMethod(EventInfo event, bool nonPublic)
Parameters
Type Name Description
System.Reflection.EventInfo event

The event to get the raise method for.

System.Boolean nonPublic

true if non-public methods can be returned; otherwise, false.

Returns
Type Description
System.Reflection.MethodInfo

A System.Reflection.MethodInfo object that was called when the event was raised.

GetRemoveMethod(EventInfo, Boolean)

Retrieves the System.Reflection.MethodInfo object for the System.Reflection.EventInfo.RemoveEventHandler(System.Object,System.Delegate) method of the event, specifying whether to return non-public methods.

Declaration
MethodInfo GetRemoveMethod(EventInfo event, bool nonPublic)
Parameters
Type Name Description
System.Reflection.EventInfo event

The event to get the remove method for.

System.Boolean nonPublic

true if non-public methods can be returned; otherwise, false.

Returns
Type Description
System.Reflection.MethodInfo

A System.Reflection.MethodInfo object representing the method used to remove an event handler delegate from the event source.

IsMulticast(EventInfo)

Gets a value indicating whether the event is multicast.

Declaration
bool IsMulticast(EventInfo event)
Parameters
Type Name Description
System.Reflection.EventInfo event

The event to check for multicast.

Returns
Type Description
System.Boolean

true if the delegate is an instance of a multicast delegate; otherwise, false.

Extension Methods

CustomAttributeProviderExtensions.IsDefined(IMemberInfoIntrospectionProvider, MemberInfo, Type)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo, Type)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo, Type, Boolean)
CustomAttributeProviderExtensions.GetCustomAttributes<T>(IMemberInfoIntrospectionProvider, MemberInfo)
CustomAttributeProviderExtensions.GetCustomAttributes(IMemberInfoIntrospectionProvider, MemberInfo, Boolean)
CustomAttributeProviderExtensions.GetCustomAttributes<T>(IMemberInfoIntrospectionProvider, MemberInfo, Boolean)
CustomAttributeProviderExtensions.GetCustomAttribute(IMemberInfoIntrospectionProvider, MemberInfo, Type)
CustomAttributeProviderExtensions.GetCustomAttribute<T>(IMemberInfoIntrospectionProvider, MemberInfo)
CustomAttributeProviderExtensions.GetCustomAttribute(IMemberInfoIntrospectionProvider, MemberInfo, Type, Boolean)
CustomAttributeProviderExtensions.GetCustomAttribute<T>(IMemberInfoIntrospectionProvider, MemberInfo, Boolean)
EventInfoIntrospectionProviderExtensions.GetAddMethod(IEventInfoIntrospectionProvider, EventInfo)
EventInfoIntrospectionProviderExtensions.GetRemoveMethod(IEventInfoIntrospectionProvider, EventInfo)
EventInfoIntrospectionProviderExtensions.GetRaiseMethod(IEventInfoIntrospectionProvider, EventInfo)
EventInfoIntrospectionProviderExtensions.GetOtherMethods(IEventInfoIntrospectionProvider, EventInfo)
EventInfoIntrospectionProviderExtensions.IsSpecialName(IEventInfoIntrospectionProvider, EventInfo)
In This Article
Back to top Generated by DocFX