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.

适用于