JoinableTaskContextNode.RegisterOnHangDetected Method
Registers with the inner JoinableTaskContext to receive hang notifications.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Protected Function RegisterOnHangDetected As IDisposable
protected IDisposable RegisterOnHangDetected()
protected:
IDisposable^ RegisterOnHangDetected()
member RegisterOnHangDetected : unit -> IDisposable
protected function RegisterOnHangDetected() : IDisposable
Return Value
Type: System.IDisposable
An IDisposable to dispose of when you want to cancel hang notifications.
.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.