HttpListenerResponse.Abort 메서드

정의

응답을 보내지 않고 클라이언트에 대한 연결을 닫습니다.

public:
 void Abort();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void Abort ();
public void Abort ();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.Abort : unit -> unit
member this.Abort : unit -> unit
Public Sub Abort ()
특성

설명

이미 닫힌 개체에서 이 메서드를 호출해도 아무 효과가 없습니다. 응답이 아직 닫혀 있지 않으면 이 메서드는 응답을 닫고 연결된 HttpListenerRequest 개체와 HttpListenerContext 개체를 닫습니다. 클라이언트 요청의 속성 값에 관계없이 클라이언트에 대한 KeepAlive 연결도 닫힙니다.

적용 대상

추가 정보