JoinableTaskContext.HangDetails(TimeSpan, Int32, Guid, MethodInfo) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the JoinableTaskContext.HangDetails class.
public:
HangDetails(TimeSpan hangDuration, int notificationCount, Guid hangId, System::Reflection::MethodInfo ^ entryMethod);
public HangDetails (TimeSpan hangDuration, int notificationCount, Guid hangId, System.Reflection.MethodInfo entryMethod);
public HangDetails (TimeSpan hangDuration, int notificationCount, Guid hangId, System.Reflection.MethodInfo? entryMethod);
new Microsoft.VisualStudio.Threading.JoinableTaskContext.HangDetails : TimeSpan * int * Guid * System.Reflection.MethodInfo -> Microsoft.VisualStudio.Threading.JoinableTaskContext.HangDetails
Public Sub New (hangDuration As TimeSpan, notificationCount As Integer, hangId As Guid, entryMethod As MethodInfo)
Parameters
- hangDuration
- TimeSpan
The duration of the current hang.
- notificationCount
- Int32
The number of times this hang has been reported, including this one.
- hangId
- Guid
A random GUID that uniquely identifies this particular hang.
- entryMethod
- MethodInfo
The method that served as the entrypoint for the JoinableTask.