PeerEndPoint Constructor (IPEndPoint, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 Sub New (
	endPoint As IPEndPoint,
	endPointName As String
)

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: