PeerEndPoint Constructor (IPEndPoint, String)

 

Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName.

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

public PeerEndPoint(
	IPEndPoint endPoint,
	string endPointName
)

Parameters

endPoint
Type: System.Net.IPEndPoint

The endpoint associated with the peer.

endPointName
Type: System.String

Specifies the name associated with the PeerEndPoint.

Exception Condition
ArgumentNullException

The endPoint argument specifies null.

ArgumentException

The endPoint specified is not a valid IPv6 endpoint.

.NET Framework
Available since 3.5
Return to top
Show: