Controller.Dispose 方法

定义

重载

Dispose()
Dispose(Boolean)

释放此 Controller 实例当前使用的所有资源。

Dispose()

Source:
Controller.cs
Source:
Controller.cs
Source:
Controller.cs

执行与释放或重置非托管资源关联的应用程序定义的任务。

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

实现

适用于

Dispose(Boolean)

Source:
Controller.cs
Source:
Controller.cs
Source:
Controller.cs

释放此 Controller 实例当前使用的所有资源。

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

true 如果此方法正在由 Dispose() 方法调用,则为 ;否则为 false

适用于