AsymmetricAlgorithm.Dispose 메서드
정의
AsymmetricAlgorithm 클래스의 현재 인스턴스에서 사용하는 모든 리소스를 해제합니다.Releases all resources used by the current instance of the AsymmetricAlgorithm class.
오버로드
Dispose() |
AsymmetricAlgorithm 클래스의 현재 인스턴스에서 사용하는 모든 리소스를 해제합니다.Releases all resources used by the current instance of the AsymmetricAlgorithm class. |
Dispose(Boolean) |
AsymmetricAlgorithm 클래스에 사용되는 관리되지 않는 리소스를 해제하고, 필요에 따라 관리되는 리소스를 해제합니다.Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources. |
Dispose()
AsymmetricAlgorithm 클래스의 현재 인스턴스에서 사용하는 모든 리소스를 해제합니다.Releases all resources used by the current instance of the AsymmetricAlgorithm class.
public:
virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()
구현
설명
Dispose
사용을 마치면 AsymmetricAlgorithm를 호출합니다.Call Dispose
when you are finished using the AsymmetricAlgorithm. Dispose
메서드를 사용하면 AsymmetricAlgorithm를 사용할 수 없게 됩니다.The Dispose
method leaves the AsymmetricAlgorithm in an unusable state. 호출한 후 Dispose
에 대 한 모든 참조를 해제 해야 합니다 AsymmetricAlgorithm 가비지 수집기에서 메모리를 회수할 수 있도록 하는 AsymmetricAlgorithm 차지한 합니다.After calling Dispose
, you must release all references to the AsymmetricAlgorithm so the garbage collector can reclaim the memory that the AsymmetricAlgorithm was occupying.
자세한 내용은 관리 되지 않는 리소스 정리 하 고 Dispose 메서드 구현합니다.For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
참고
Dispose
에 대한 마지막 참조를 해제하기 전에 반드시 AsymmetricAlgorithm를 호출하십시오.Always call Dispose
before you release your last reference to the AsymmetricAlgorithm. 이렇게 하지 않으면 가비지 수집기가 AsymmetricAlgorithm 개체의 Finalize
메서드를 호출할 때까지 사용 중인 리소스가 해제되지 않습니다.Otherwise, the resources it is using will not be freed until the garbage collector calls the AsymmetricAlgorithm object's Finalize
method.
Dispose(Boolean)
AsymmetricAlgorithm 클래스에 사용되는 관리되지 않는 리소스를 해제하고, 필요에 따라 관리되는 리소스를 해제합니다.Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources.
protected:
abstract void Dispose(bool disposing);
protected abstract void Dispose (bool disposing);
abstract member Dispose : bool -> unit
Protected MustOverride Sub Dispose (disposing As Boolean)
매개 변수
- disposing
- Boolean
관리되는 리소스와 관리되지 않는 리소스를 모두 해제하려면 true
로 설정하고, 관리되지 않는 리소스만 해제하려면 false
로 설정합니다.true
to release both managed and unmanaged resources; false
to release 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
인 경우 이 메서드는 이 AsymmetricAlgorithm에서 참조하는 관리 개체가 보유하고 있는 리소스를 모두 해제합니다.When the disposing
parameter is true
, this method releases all resources held by any managed objects that this AsymmetricAlgorithm references. 이 메서드는 참조되는 각 개체의 Dispose()
메서드를 호출합니다.This method invokes the Dispose()
method of each referenced object.
구현자 참고
Dispose
는 다른 개체에서 여러 번 호출할 수 있습니다.
Dispose
can be called multiple times by other objects. 재정의 하는 경우 Dispose(Boolean)
대 한 이전 호출에서 삭제 된 개체를 참조 하지 않도록 주의 하십시오 Dispose
합니다.When overriding Dispose(Boolean)
, be careful not to reference objects that have been previously disposed in an earlier call to Dispose
. 구현 하는 방법에 대 한 자세한 내용은 Dispose(Boolean)
를 참조 하세요 [Dispose 메서드 구현](~/docs/standard/garbage-collection/implementing-dispose.md)합니다.For more information about how to implement Dispose(Boolean)
, see [Implementing a Dispose Method](~/docs/standard/garbage-collection/implementing-dispose.md).
에 대 한 자세한 내용은 Dispose
하 고 Finalize
를 참조 하세요 [관리 되지 않는 리소스 정리](~/docs/standard/garbage-collection/unmanaged.md)합니다.For more information about Dispose
and Finalize
, see [Cleaning Up Unmanaged Resources](~/docs/standard/garbage-collection/unmanaged.md).