PeerContact::Dispose Method (Boolean)

 

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

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

protected:
[SecurityCriticalAttribute]
virtual void Dispose(
	bool disposing
) override

Parameters

disposing
Type: System::Boolean

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

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.

.NET Framework
Available since 3.5
Return to top
Show: