IPEndPoint Class
TOC
Collapse the table of content
Expand the table of content

IPEndPoint Class

 

Represents a network endpoint as an IP address and a port number.

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

System.Object
  System.Net.EndPoint
    System.Net.IPEndPoint

[<SerializableAttribute>]
type IPEndPoint = 
    class
        inherit EndPoint
    end

NameDescription
System_CAPS_pubmethodIPEndPoint(Int64, Int32)

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

System_CAPS_pubmethodIPEndPoint(IPAddress, Int32)

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

NameDescription
System_CAPS_pubpropertyAddress

Gets or sets the IP address of the endpoint.

System_CAPS_pubpropertyAddressFamily

Gets the Internet Protocol (IP) address family.(Overrides EndPoint.AddressFamily.)

System_CAPS_pubpropertyPort

Gets or sets the port number of the endpoint.

NameDescription
System_CAPS_pubmethodCreate(SocketAddress)

Creates an endpoint from a socket address.(Overrides EndPoint.Create(SocketAddress).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current Object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns a hash value for a IPEndPoint instance.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSerialize()

Serializes endpoint information into a SocketAddress instance.(Overrides EndPoint.Serialize().)

System_CAPS_pubmethodToString()

Returns the IP address and port number of the specified endpoint.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticMaxPort

Specifies the maximum value that can be assigned to the Port property. The MaxPort value is set to 0x0000FFFF. This field is read-only.

System_CAPS_pubfieldSystem_CAPS_staticMinPort

Specifies the minimum value that can be assigned to the Port property. This field is read-only.

The IPEndPoint class contains the host and local or remote port information needed by an application to connect to a service on a host. By combining the host's IP address and port number of a service, the IPEndPoint class forms a connection point to a service.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft