HashAlgorithm.Clear 方法

定义

释放 HashAlgorithm 类使用的所有资源。Releases all resources used by the HashAlgorithm class.

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

注解

此方法是对 IDisposable.Dispose 方法的简单调用。This method is a simple call to the IDisposable.Dispose method.

调用 Dispose 允许出于其他目的重新分配 HashAlgorithm 类使用的资源。Calling Dispose allows the resources used by the HashAlgorithm class to be reallocated for other purposes. 有关 Dispose的详细信息,请参阅清理非托管资源For more information about Dispose, see Cleaning Up Unmanaged Resources.

适用于