ContactManager.GetContact Method (PeerName)

 

Returns the PeerContact object for the specified PeerName.

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

[SecurityCriticalAttribute]
public PeerContact GetContact(
	PeerName peerName
)

Parameters

peerName
Type: System.Net.PeerToPeer.PeerName

The PeerName associated with the PeerContact to be retrieved.

Return Value

Type: System.Net.PeerToPeer.Collaboration.PeerContact

PeerContact associated with the supplied PeerName.

Exception Condition
ArgumentNullException

peerName is null.

ObjectDisposedException

This PeerName object has been disposed.

PeerToPeerException

Calling this method requires a PermissionState of Unrestricted.

.NET Framework
Available since 3.5
Return to top
Show: