[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.
The 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 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 SetEventMask method.
Platforms: See .NET Framework System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: 4.5.2