This documentation is archived and is not being maintained.

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.

ExceptionCondition
ArgumentNullException

The endPoint argument specifies null.

ArgumentException

The endPoint specified is not a valid IPv6 endpoint.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: