IPHostEntry IPHostEntry IPHostEntry IPHostEntry Class

Definition

Provides a container class for Internet host address information.

public ref class IPHostEntry
public class IPHostEntry
type IPHostEntry = class
Public Class IPHostEntry
Inheritance
IPHostEntryIPHostEntryIPHostEntryIPHostEntry

Examples

The following example queries the DNS database for information on the host www.contoso.com and returns the information in an IPHostEntry instance.

IPHostEntry^ hostInfo = Dns::GetHostEntry( "www.contoso.com" );
IPHostEntry hostInfo = Dns.GetHostEntry("www.contoso.com");
Dim hostInfo As IPHostEntry = Dns.GetHostEntry("www.contoso.com")

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.

Constructors

IPHostEntry() IPHostEntry() IPHostEntry() IPHostEntry()

Initializes a new instance of the IPHostEntry class.

Properties

AddressList AddressList AddressList AddressList

Gets or sets a list of IP addresses that are associated with a host.

Aliases Aliases Aliases Aliases

Gets or sets a list of aliases that are associated with a host.

HostName HostName HostName HostName

Gets or sets the DNS name of the host.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also