[Supported in the .NET Framework 4.5.2 and later versions]
Gets the current event categories for which the profiler wants to receive notifications from the common language runtime (CLR). It provides functionality not provided by the ICorProfilerInfo::GetEventMask method.
The GetEventMask2 method is used to determine which callbacks the profiler has subscribed to. Typically, you perform a logical OR of the pdwEventsLow and pdwEventsHigh values and any new bits you want to set, and then call the SetEventMask2 method.
This method is the recommended alternative to the GetEventMask method.
Platforms: See .NET Framework System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: 4.6, 4.5.2