Thread.ResetAbort 메서드

정의

주의

Thread.ResetAbort is not supported and throws PlatformNotSupportedException.

현재 스레드에 대해 요청된 Abort(Object)를 취소합니다.

public:
 static void ResetAbort();
public static void ResetAbort ();
[System.Obsolete("Thread.ResetAbort is not supported and throws PlatformNotSupportedException.", DiagnosticId="SYSLIB0006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static void ResetAbort ();
static member ResetAbort : unit -> unit
[<System.Obsolete("Thread.ResetAbort is not supported and throws PlatformNotSupportedException.", DiagnosticId="SYSLIB0006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ResetAbort : unit -> unit
Public Shared Sub ResetAbort ()
특성

예외

.NET Core 및 .NET 5+ 전용: 모든 경우

Abort가 현재 스레드에서 호출되지 않았습니다.

호출자에게 현재 스레드에 대한 필수 보안 권한이 없습니다.

설명

이 메서드는 적절한 권한이 있는 코드에서만 호출할 수 있습니다.

Abort스레드를 종료하기 위해 를 호출하면 시스템에서 을 throw합니다. ThreadAbortException ThreadAbortException 애플리케이션 코드에서 발견 될 수 있지만 하지 않는 한 catch 블록의 끝에 다시 throw 되는 특별 한 예외는 ResetAbort 라고 합니다. ResetAbort 는 중단 요청을 취소하고 가 ThreadAbortException 스레드를 종료하지 못하도록 합니다.

ThreadAbortException메서드를 호출하는 방법을 보여 주는 예제는 를 ResetAbort 참조하세요.

적용 대상

추가 정보