IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.CoreLib.Symbols.IEventSymbol Interface Reference

Discovers the attributes of an event and provides access to event metadata. More...

Inheritance diagram for IKVM.CoreLib.Symbols.IEventSymbol:
IKVM.CoreLib.Symbols.IMemberSymbol IKVM.CoreLib.Symbols.ISymbol IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol

Public Member Functions

IMethodSymbolGetAddMethod ()
 Returns the method used to add an event handler delegate to the event source.
 
IMethodSymbolGetAddMethod (bool nonPublic)
 Returns the method used to add an event handler delegate to the event source, specifying whether to return non-public methods.
 
IMethodSymbolGetRemoveMethod ()
 Returns the method used to remove an event handler delegate from the event source.
 
IMethodSymbolGetRemoveMethod (bool nonPublic)
 When overridden in a derived class, retrieves the IMethodSymbol object for removing a method of the event, specifying whether to return non-public methods.
 
IMethodSymbolGetRaiseMethod ()
 Returns the method that is called when the event is raised.
 
IMethodSymbolGetRaiseMethod (bool nonPublic)
 When overridden in a derived class, returns the method that is called when the event is raised, specifying whether to return non-public methods.
 
IMethodSymbol[] GetOtherMethods ()
 Returns the public methods that have been associated with an event in metadata using the .other directive.
 
IMethodSymbol[] GetOtherMethods (bool nonPublic)
 Returns the methods that have been associated with the event in metadata using the .other directive, specifying whether to include non-public methods.
 
- Public Member Functions inherited from IKVM.CoreLib.Symbols.ICustomAttributeSymbolProvider
ImmutableArray< CustomAttributeSymbolGetCustomAttributes ()
 Returns an array of all of the custom attributes defined on this member, excluding named attributes, or an empty array if there are no custom attributes.
 
ImmutableArray< CustomAttributeSymbolGetCustomAttributes (ITypeSymbol attributeType)
 Returns an array of custom attributes defined on this member, identified by type, or an empty array if there are no custom attributes of that type.
 
bool IsDefined (ITypeSymbol attributeType)
 Indicates whether one or more instance of attributeType is defined on this member.
 

Properties

EventAttributes Attributes [get]
 Gets the attributes for this event.
 
ITypeSymbolEventHandlerType [get]
 Gets the object of the underlying event-handler delegate associated with this event.
 
bool IsSpecialName [get]
 Gets a value indicating whether the IEventSymbol has a name with a special meaning.
 
IMethodSymbolAddMethod [get]
 Returns the method used to add an event handler delegate to the event source.
 
IMethodSymbolRemoveMethod [get]
 Returns the method used to remove an event handler delegate from the event source.
 
IMethodSymbolRaiseMethod [get]
 Returns the method that is called when the event is raised.
 
- Properties inherited from IKVM.CoreLib.Symbols.IMemberSymbol
IModuleSymbol Module [get]
 Gets the module in which the type that declares the member represented by the current is defined.
 
ITypeSymbolDeclaringType [get]
 Gets the class that declares this member.
 
MemberTypes MemberType [get]
 When overridden in a derived class, gets a value indicating the type of the member - method, constructor, event, and so on.
 
int MetadataToken [get]
 Gets a value that identifies a metadata element.
 
string Name [get]
 Gets the name of the current member.
 
- Properties inherited from IKVM.CoreLib.Symbols.ISymbol
bool IsMissing [get]
 Returns true if the symbol is missing.
 

Detailed Description

Discovers the attributes of an event and provides access to event metadata.

Definition at line 9 of file IEventSymbol.cs.

Member Function Documentation

◆ GetAddMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.GetAddMethod ( )

Returns the method used to add an event handler delegate to the event source.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

◆ GetAddMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.GetAddMethod ( bool nonPublic)

Returns the method used to add an event handler delegate to the event source, specifying whether to return non-public methods.

Parameters
nonPublic
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

◆ GetOtherMethods() [1/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IEventSymbol.GetOtherMethods ( )

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

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

◆ GetOtherMethods() [2/2]

IMethodSymbol[] IKVM.CoreLib.Symbols.IEventSymbol.GetOtherMethods ( bool nonPublic)

Returns the methods that have been associated with the event in metadata using the .other directive, specifying whether to include non-public methods.

Parameters
nonPublic
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

◆ GetRaiseMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.GetRaiseMethod ( )

Returns the method that is called when the event is raised.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

◆ GetRaiseMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.GetRaiseMethod ( bool nonPublic)

When overridden in a derived class, returns the method that is called when the event is raised, specifying whether to return non-public methods.

Parameters
nonPublic
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

◆ GetRemoveMethod() [1/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.GetRemoveMethod ( )

Returns the method used to remove an event handler delegate from the event source.

Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

◆ GetRemoveMethod() [2/2]

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.GetRemoveMethod ( bool nonPublic)

When overridden in a derived class, retrieves the IMethodSymbol object for removing a method of the event, specifying whether to return non-public methods.

Parameters
nonPublic
Returns

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

Property Documentation

◆ AddMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.AddMethod
get

Returns the method used to add an event handler delegate to the event source.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

Definition at line 30 of file IEventSymbol.cs.

30{ get; }

◆ Attributes

EventAttributes IKVM.CoreLib.Symbols.IEventSymbol.Attributes
get

Gets the attributes for this event.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

Definition at line 15 of file IEventSymbol.cs.

15{ get; }

◆ EventHandlerType

◆ IsSpecialName

bool IKVM.CoreLib.Symbols.IEventSymbol.IsSpecialName
get

Gets a value indicating whether the IEventSymbol has a name with a special meaning.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

Definition at line 25 of file IEventSymbol.cs.

25{ get; }

◆ RaiseMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.RaiseMethod
get

Returns the method that is called when the event is raised.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

Definition at line 40 of file IEventSymbol.cs.

40{ get; }

◆ RemoveMethod

IMethodSymbol? IKVM.CoreLib.Symbols.IEventSymbol.RemoveMethod
get

Returns the method used to remove an event handler delegate from the event source.

Implemented in IKVM.CoreLib.Symbols.IkvmReflection.IkvmReflectionEventSymbol, and IKVM.CoreLib.Symbols.Reflection.ReflectionEventSymbol.

Definition at line 35 of file IEventSymbol.cs.

35{ get; }

The documentation for this interface was generated from the following file: