ToBase64Transform.Clear 方法

定义

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

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

示例

下面的代码示例演示了如何调用Clear方法以通过当前转换释放未使用的资源。The following code example demonstrates how to call the Clear method to free up unused resources by the current transform. 此代码示例是为ToBase64Transform类提供的更大示例的一部分。This code example is part of a larger example provided for the ToBase64Transform class.

base64Transform->Clear();
base64Transform.Clear();
base64Transform.Clear()

注解

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

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

适用于

另请参阅