CryptoStream.Clear 方法

定义

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

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

注解

此方法包装对类型的 IDisposable.Dispose 实现的调用。This method wraps a call to the type's IDisposable.Dispose implementation.

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

适用于

另请参阅