Export (0) Print
Expand All

IPEndPoint Constructor (IPAddress, Int32)

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)

public IPEndPoint(
	IPAddress address,
	int port
)

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 null.

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft