PeerContact.Dispose(Boolean) 方法

定義

釋放 Unmanaged 資源,並選擇性釋放 PeerApplication 物件所使用的 Managed 資源。

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)

參數

disposing
Boolean

true 表示釋放 Managed 和 Unmanaged 資源,false 則表示只釋放 Unmanaged 資源。

屬性

備註

PeerContact離開共同作業會話時,不再需要特定物件。 如果此連絡人已與任何其他端點共同作業, () 未直接向對等主機註冊,且主機預期會繼續與其共同作業,主機必須在應用程式或其內 ContactManager 註冊這些端點,才能處置此 PeerContact 物件。

適用於