PeerEndPoint.Dispose 方法

定义

释放由 PeerEndPoint 实例利用的所有资源。Releases all resources utilized by the PeerEndPoint instance.

重载

Dispose()

释放由 PeerEndPoint 对象使用的所有资源。Releases all resources used by the PeerEndPoint object.

Dispose(Boolean)

释放由 PeerEndPoint 对象占用的非托管资源并(可选)释放托管资源。Releases the unmanaged resources used by the PeerEndPoint object and optionally releases the managed resources.

Dispose()

释放由 PeerEndPoint 对象使用的所有资源。Releases all resources used by the PeerEndPoint object.

public:
 virtual void Dispose();
[System.Security.SecurityCritical]
public void Dispose ();
[<System.Security.SecurityCritical>]
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

实现

属性

适用于

Dispose(Boolean)

释放由 PeerEndPoint 对象占用的非托管资源并(可选)释放托管资源。Releases the unmanaged resources used by the PeerEndPoint object and optionally releases the managed resources.

protected:
 virtual void Dispose(bool disposing);
[System.Security.SecurityCritical]
protected virtual void Dispose (bool disposing);
[<System.Security.SecurityCritical>]
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

参数

disposing
Boolean

设置为 true 可释放托管资源和非托管资源;设置为 false 只能释放非托管资源。Set to true to release both managed and unmanaged resources; false to release only unmanaged resources.

属性

适用于