다음을 통해 공유


DnsEndPoint Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents a network endpoint as a host name or a string representation of an IP address and a port number.

Inheritance Hierarchy

System.Object
  System.Net.EndPoint
    System.Net.DnsEndPoint

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

Syntax

'Declaration
Public NotInheritable Class DnsEndPoint _
    Inherits EndPoint
public sealed class DnsEndPoint : EndPoint

The DnsEndPoint type exposes the following members.

Constructors

  Name Description
Public methodSupported by Silverlight for Windows Phone DnsEndPoint(String, Int32) Initializes a new instance of the DnsEndPoint class with the host name or string representation of an IP address and a port number.
Public methodSupported by Silverlight for Windows Phone DnsEndPoint(String, Int32, AddressFamily) Initializes a new instance of the DnsEndPoint class with the host name or string representation of an IP address, a port number, and an address family.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone AddressFamily Gets the Internet Protocol (IP) address family. (Overrides EndPoint.AddressFamily.)
Public propertySupported by Silverlight for Windows Phone Host Gets the host name or string representation of the Internet Protocol (IP) address of the host.
Public propertySupported by Silverlight for Windows Phone Port Gets the port number of the DnsEndPoint.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Create Creates an EndPoint instance from a SocketAddress instance. (Inherited from EndPoint.)
Public methodSupported by Silverlight for Windows Phone Equals Compares two DnsEndPoint objects. (Overrides Object.Equals(Object).)
Protected methodSupported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Returns a hash value for a DnsEndPoint. (Overrides Object.GetHashCode().)
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone Serialize Serializes endpoint information into a SocketAddress instance. (Inherited from EndPoint.)
Public methodSupported by Silverlight for Windows Phone ToString Returns the host name or string representation of the IP address and port number of the DnsEndPoint. (Overrides Object.ToString().)

Top

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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

Thread Safety

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

See Also

Reference