GetRaiseMethod Method (Boolean)
Collapse the table of content
Expand the table of content

EventInfo.GetRaiseMethod Method (Boolean)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public MustOverride Function GetRaiseMethod ( _
	nonPublic As Boolean _
) As MethodInfo

Parameters

nonPublic
Type: System.Boolean
true if non-public methods can be returned; otherwise, false.

Return Value

Type: System.Reflection.MethodInfo
The method that is called when the event is raised.

ExceptionCondition
MemberAccessException

This member is invoked late-bound through mechanisms such as Type.InvokeMember.

This method returns Nothing for events declared with the C# event keyword or the Visual Basic Event keyword. This is because the C# and Visual Basic compilers do not generate such a method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft