Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

new : 
        endPoint:IPEndPoint * 
        endPointName:string -> PeerEndPoint

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 a null reference (Nothing in Visual Basic).

ArgumentException

The endPoint specified is not a valid IPv6 endpoint.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

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