Export (0) Print
Expand All

ContactManager.GetContact Method

Returns the PeerContact object for the specified PeerName.

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

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.

ExceptionCondition
ArgumentNullException

peerName is null.

ObjectDisposedException

This PeerName object has been disposed.

PeerToPeerException

Calling this method requires a PermissionState of Unrestricted.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft