Method ToEventInfoToEventInfo()Gets an EventInfo that represents the current event at run time. Declaration EventInfo ToEventInfo() Returns Type Description EventInfo An EventInfo that can be used only in run-time code.