ToBase64Transform.Clear ToBase64Transform.Clear ToBase64Transform.Clear ToBase64Transform.Clear Method

定義

釋放 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.DisposeThis 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,請參閱 < 清除 Unmanaged 資源總For more information about Dispose, see Cleaning Up Unmanaged Resources.

適用於

另請參閱