Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Called when a hang is suspected to have occurred involving the main thread.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Protected Friend Overridable Sub OnHangDetected ( _
hangDuration As TimeSpan, _
notificationCount As Integer, _
hangId As Guid _
)
protected internal virtual void OnHangDetected(
TimeSpan hangDuration,
int notificationCount,
Guid hangId
)
protected public:
virtual void OnHangDetected(
TimeSpan hangDuration,
int notificationCount,
Guid hangId
)
abstract OnHangDetected :
hangDuration:TimeSpan *
notificationCount:int *
hangId:Guid -> unit
override OnHangDetected :
hangDuration:TimeSpan *
notificationCount:int *
hangId:Guid -> unit
function OnHangDetected(
hangDuration : TimeSpan,
notificationCount : int,
hangId : Guid
)
Parameters
hangDuration
Type: System.TimeSpanThe duration of the current hang.
notificationCount
Type: System.Int32The number of times this hang has been reported, including this one.
hangId
Type: System.GuidA random GUID that uniquely identifies this particular hang.
Remarks
A single hang occurrence may invoke this method multiple times, with increasing values in the hangDuration parameter.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.