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.
Assembly: System.Net (in System.Net.dll)
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The address parameter is Nothing. |
| ArgumentOutOfRangeException | port is less than MinPort. -or- port is greater than MaxPort. |
Show: