Share via


IPHostEntry Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides a container class for Internet host address information.

Inheritance Hierarchy

System. . :: . .Object
  System.Net..::..IPHostEntry

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

Syntax

'Declaration
Public Class IPHostEntry
public class IPHostEntry
public ref class IPHostEntry
type IPHostEntry =  class end
public class IPHostEntry

The IPHostEntry type exposes the following members.

Constructors

  Name Description
Public method IPHostEntry Initializes a new instance of the IPHostEntry class.

Top

Properties

  Name Description
Public property AddressList Gets or sets a list of IP addresses that are associated with a host.
Public property HostName Gets or sets the DNS name of the host.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The IPHostEntry class associates a Domain Name System (DNS) host name with an array of aliases and an array of matching IP addresses.

The IPHostEntry class is used as a helper class with the Dns class.

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

System.Net Namespace