JoinableTaskContextNode::OnHangDetected Method (TimeSpan, Int32, Guid)
Visual Studio 2015
Occurs when a hang involving the main thread is suspected to have occurred.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
public protected: virtual void OnHangDetected( TimeSpan hangDuration, int notificationCount, Guid hangId )
Parameters
- hangDuration
-
Type:
System::TimeSpan
The duration of the current hang.
- notificationCount
-
Type:
System::Int32
The number of times this hang has been reported, including this one.
- hangId
-
Type:
System::Guid
A random GUID that uniquely identifies this particular hang.
A single hang occurrence may invoke this method multiple times, with increasing values in the hangDuration parameter.
Show: