DirectoryServer.Dispose 方法

定义

释放由该对象使用的资源。Releases resources that are used by the object.

重载

Dispose()

释放由该对象使用的所有托管资源和非托管资源。Releases all managed and unmanaged resources that are used by the object.

Dispose(Boolean)

释放由该对象使用的所有非托管资源,并可选择释放由该对象使用的所有托管资源。Releases all unmanaged resources and, optionally, all managed resources that are used by the object.

Dispose()

释放由该对象使用的所有托管资源和非托管资源。Releases all managed and unmanaged resources that are used 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)

释放由该对象使用的所有非托管资源,并可选择释放由该对象使用的所有托管资源。Releases all unmanaged resources and, optionally, all managed resources that are used by the object.

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

确定是否应释放托管资源。Determines if the managed resources should be released. 如果释放托管资源,则为 true;如果不释放托管资源,则为 falsetrue if the managed resources are released; false if the managed resources are not released.

注解

disposing参数只会影响托管资源的发行。The disposing parameter affects only the release of the managed resources. 此方法始终释放非托管资源。The unmanaged resources are always released by this method.

适用于