Upraviť

Zdieľať cez


_EventInfo.GetAddMethod Method

Definition

Provides COM objects with version-independent access to the GetAddMethod methods.

Overloads

GetAddMethod()

Provides COM objects with version-independent access to the GetAddMethod() method.

GetAddMethod(Boolean)

Provides COM objects with version-independent access to the GetAddMethod(Boolean) method.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The GetAddMethod methods return the method used to add an event-handler delegate to the event source.

GetAddMethod()

Provides COM objects with version-independent access to the GetAddMethod() method.

public:
 System::Reflection::MethodInfo ^ GetAddMethod();
public System.Reflection.MethodInfo GetAddMethod ();
abstract member GetAddMethod : unit -> System.Reflection.MethodInfo
Public Function GetAddMethod () As MethodInfo

Returns

A MethodInfo object representing the method used to add an event-handler delegate to the event source.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The GetAddMethod method returns the method used to add an event-handler delegate to the event source.

Applies to

GetAddMethod(Boolean)

Provides COM objects with version-independent access to the GetAddMethod(Boolean) method.

public:
 System::Reflection::MethodInfo ^ GetAddMethod(bool nonPublic);
public System.Reflection.MethodInfo GetAddMethod (bool nonPublic);
abstract member GetAddMethod : bool -> System.Reflection.MethodInfo
Public Function GetAddMethod (nonPublic As Boolean) As MethodInfo

Parameters

nonPublic
Boolean

true to return non-public methods; otherwise, false.

Returns

A MethodInfo object representing the method used to add an event-handler delegate to the event source.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The GetAddMethod method retrieves the MethodInfo object for the AddEventHandler method of the event and specifies whether to return non-public methods

Applies to