HttpClient.Dispose(Boolean) 메서드
정의
HttpClient에서 사용하는 관리되지 않는 리소스를 해제하고 관리되는 리소스를 선택적으로 삭제할 수 있습니다.Releases the unmanaged resources used by the HttpClient and optionally disposes of the managed resources.
protected:
override void Dispose(bool disposing);
protected override void Dispose (bool disposing);
override this.Dispose : bool -> unit
Protected Overrides Sub Dispose (disposing As Boolean)
매개 변수
- disposing
- Boolean
관리되는 리소스와 관리되지 않는 리소스를 모두 해제하려면 true
, 관리되지 않는 리소스만 해제하려면 false
입니다.true
to release both managed and unmanaged resources; false
to releases only unmanaged resources.
설명
이 메서드는 공용 Dispose()
메서드 및 Finalize 메서드.This method is called by the public Dispose()
method and the Finalize method. Dispose()
보호 된 호출 Dispose(Boolean)
메서드를 disposing
매개 변수 설정 true
합니다.Dispose()
invokes the protected Dispose(Boolean)
method with the disposing
parameter set to true
. Finalize 호출 Dispose
사용 하 여 disposing
로 false
합니다.Finalize invokes Dispose
with disposing
set to false
.
disposing
매개 변수가 true
인 경우 이 메서드는 이 HttpClient에서 참조하는 관리 개체가 보유하고 있는 리소스를 모두 해제합니다.When the disposing
parameter is true
, this method releases all resources held by any managed objects that this HttpClient references. 이 메서드는 참조되는 각 개체의 Dispose()
메서드를 호출합니다.This method invokes the Dispose()
method of each referenced object.
이 메서드를 호출 하면 CancelPendingRequests 보류 중인 모든 요청을 중단 하기 위해 메서드가 호출 됩니다.When this method is called, the CancelPendingRequests method is called to abort all pending requests.