PeerNameRegistration.Dispose Method (Boolean)

 

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

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

protected virtual void Dispose(
	bool disposing
)

Parameters

disposing
Type: System.Boolean

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

Notes to Callers:

Always call the Dispose method before releasing the last reference to the PeerNameRegistration object.

.NET Framework
Available since 3.5
Return to top
Show: