EventInfo.GetRaiseMethod Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the method that is called when the event is raised.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
Public Function GetRaiseMethod As MethodInfo
public MethodInfo GetRaiseMethod()
Return Value
Type: System.Reflection..::.MethodInfo
The method that is called when the event is raised.
Exceptions
Exception | Condition |
---|---|
MemberAccessException | This member is invoked late-bound through mechanisms such as Type..::.InvokeMember. |
Remarks
This method returns nullNothingnullptra null reference (Nothing in Visual Basic) 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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone