แก้ไข

แชร์ผ่าน


PeerContact.Dispose(Boolean) Method

Definition

Releases the unmanaged resources and optionally releases the managed resources used by the PeerApplication object.

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

Parameters

disposing
Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Attributes

Remarks

When a PeerContact leaves a collaboration session, certain objects are no longer required. If this contact had been collaborating with any other endpoint(s) not directly registered with the peer host, and the host expects to continue to collaborate with them, the host must register those endpoints within an application or within its ContactManager before disposing of this PeerContact object.

Applies to