NetworkInterface Members

The following tables list the members exposed by the NetworkInterface type.

Protected Constructors

Name Description
Protected Method NetworkInterface Instantiates an instance of the NetworkInterface class.

Public Properties

Name Description
Public Property DnsAddresses Holds the DNS server address.
Public Property GatewayAddress Contains the gateway address.
Public Property IPAddress Holds the IP address of the network interface.
Public Property IsDhcpEnabled Gets a value specifying whether DHCP is enabled for this network interface.s
Public Property IsDynamicDnsEnabled Retrieves a value indicating whether a network interface can obtain a DNS server address automatically.
Public Property NetworkInterfaceType Retrieves a value specifying the type of network interface being used by the device.
Public Property PhysicalAddress Sets or gets the Media Access Control (MAC) address for a network interface
Public Property SubnetMask Retrieves the network interface's subnet mask.

Public Methods

Name Description
Public Method EnableDhcp Enables the Dynamic Host Configuration Protocol (DHCP) for service with this network interface.
Public Method EnableDynamicDns Enables a network interface to obtain a DNS server address automatically.
Public Method EnableStaticDns Enables a network interface to use a specific DNS server address.
Public Method EnableStaticIP Enables an application to set and use a static IP address.
Public Method Equals (Inherited from Object.)
Public Method Static GetAllNetworkInterfaces Retrieves an array of all of the device's network interfaces.
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ReleaseDhcpLease Releases the DHCP lease, which releases the IP address bound to a DHCP-enabled network interface.
Public Method RenewDhcpLease Renews a DHCP lease, which renews the IP address on a DHCP-enabled network interface.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

NetworkInterface Class
Microsoft.SPOT.Net.NetworkInformation Namespace