ActiveDirectoryPartition.Dispose ActiveDirectoryPartition.Dispose ActiveDirectoryPartition.Dispose ActiveDirectoryPartition.Dispose Method

定義

釋放該物件所持有的資源。Releases the resources that are held by the object.

多載

Dispose() Dispose() Dispose() Dispose()

釋放此物件所持有的所有 Managed 和 Unmanaged 資源。Releases all managed and unmanaged resources that are held by the object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放此物件所使用的 Managed 資源,並選擇性地釋放 Unmanaged 資源。Releases the managed resources that are used by the object and, optionally, releases unmanaged resources.

Dispose() Dispose() Dispose() Dispose()

釋放此物件所持有的所有 Managed 和 Unmanaged 資源。Releases all managed and unmanaged resources that are held by the object.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

實作

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放此物件所使用的 Managed 資源,並選擇性地釋放 Unmanaged 資源。Releases the managed resources that are used by the object and, optionally, releases unmanaged resources.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

參數

disposing
Boolean Boolean Boolean Boolean

Boolean 值,可決定是否應該釋放 Managed 資源。A Boolean value that determines if the managed resources should be released. true 表示釋放 Managed 資源,若只釋放 Unmanaged 資源則為 falsetrue if the managed resources are released; false if only the unmanaged resources are released.

備註

disposing參數只會影響 managed 資源的版本。The disposing parameter only affects the release of the managed resources. 這個方法一律會釋出 unmanaged 的資源。The unmanaged resources are always released by this method.

適用於