IPEndPoint Constructor (IPAddress, Int32)
Collapse the table of content
Expand the table of content

IPEndPoint Constructor (IPAddress, Int32)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the IPEndPoint class with the specified address and port number.

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

'Declaration
Public Sub New ( _
	address As IPAddress, _
	port As Integer _
)

Parameters

address
Type: System.Net.IPAddress
The IP address of the Internet host represented as an IPAddress.
port
Type: System.Int32
The port number associated with the address, or 0 to specify any available port. port is in host order.

ExceptionCondition
ArgumentNullException

The address parameter is Nothing.

ArgumentOutOfRangeException

port is less than MinPort.

-or-

port is greater than MaxPort.

The IPEndPoint(IPAddress, Int32) constructor can be used to initialize an IPv4 or IPv6 address.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft