[Supported in the .NET Framework 4.5.2 and later versions]
Sets a value that specifies the types of events for which the profiler wants to receive event notifications from the common language runtime (CLR). It provides more functionality than the ICorProfilerInfo::SetEventMask method.
HRESULT SetEventMask2( [in] DWORD dwEventsLow, [in] DWORD dwEventsHigh );
[in] A 4-byte value that specifies the categories of events. Each bit controls a different capability, behavior, or type of event. The bits are described in the COR_PRF_MONITOR enumeration.
[in] A 4-byte value that specifies the categories of events. Each bit controls a different capability, behavior, or type of event. The bits are described in the COR_PRF_HIGH_MONITOR enumeration.
SetEventMask2 method is used to set the callbacks to which the profiler subscribes. Typically, you call the GetEventMask2 method to determine which bits are set, perform a logical OR of its
pdwEventsHigh values and any new bits you want to set, and then call the
This method is the recommended alternative to the SetEventMask method.
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: Available since 4.5.2