RemoteServiceBroker.Dispose 方法

定义

重载

Dispose()
已过时.
Dispose(Boolean)
已过时.

释放托管和/或非托管资源。

Dispose()

注意

Use DisposeAsync instead.

已过时.

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

public:
 virtual void Dispose();
[System.Obsolete("Use DisposeAsync instead.")]
public void Dispose ();
[<System.Obsolete("Use DisposeAsync instead.")>]
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

实现

属性

适用于

Dispose(Boolean)

注意

Override DisposeAsync instead.

释放托管和/或非托管资源。

protected:
 virtual void Dispose(bool disposing);
[System.Obsolete("Override DisposeAsync instead.")]
protected virtual void Dispose (bool disposing);
[<System.Obsolete("Override DisposeAsync instead.")>]
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

参数

disposing
Boolean

true 释放托管资源和非托管资源; false 以仅释放非托管资源。

属性

适用于