|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
A class that provides information about the network configuration for the local machine. Uses the IP Helper DLL wrapper.
Field Summary | |
---|---|
bool | dns |
System.Net.IPAddress[] | dnsServerList |
string | domainName |
uint | ERROR_BUFFER_OVERFLOW |
uint | ERROR_IO_PENDING |
string | hostName |
bool | loaded |
NetSamples.Common.Net.Network.NodeType | nodeType |
bool | proxy |
bool | routing |
string | scopeId |
Constructor Summary | |
---|---|
Network() Initializes a new instance of the Network class. |
Property Summary | |
---|---|
System.Collections.ICollection |
Adapters
The network adapters |
System.Collections.ICollection |
Addresses
The addresses for the machine |
bool |
DnsEnabled
Tests whether DNS is enabled |
System.Net.IPAddress[] |
DnsServerList
Gets the list of DNS Servers |
string |
DomainName
The Domain Name |
string |
HostName
The Host name |
int |
InterfaceCount
The number of network interfaces |
System.Collections.ICollection |
Interfaces
The network interfaces |
bool |
ProxyEnabled
Determines if a proxy is enabled |
bool |
RoutingEnabled
Determines whether Routing is enabled |
string |
ScopeId
The Scope ID |
NetSamples.Common.Net.Network.NodeType |
Type
The Node Type |
Method Summary | |
---|---|
NetSamples.Common.Net.NetworkInterface |
BestInterface(System.Net.IPAddress destination) Gets the best interface to use for the destination address. |
bool |
IsLocalAddress(System.Net.IPAddress address) Determines whether the supplied IP Address matches of the machines addresses. |
bool |
IsMulticastAddress(System.Net.IPAddress address) Determines whether the supplied IP Address is a multicast address. |
bool |
IsPrivateNetworkAddress(System.Net.IPAddress address) Tests whether an IPAddress is in one of the address ranges designated by RFC1912 as a private address. |
void |
LoadNetworkParams() Loads the core network information for the machine. Note that the Network class is not compatible with Windows NT 4.0 as the IP Helper library is not available on that platform. |
bool |
RttHopCount(System.Net.IPAddress destination, uint maxhops, uint rtt, uint hopcount) Gets the RTT and Hop count for the destination address. |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
private bool dns
private System.Net.IPAddress[] dnsServerList
private string domainName
protected uint ERROR_BUFFER_OVERFLOW
protected uint ERROR_IO_PENDING
private string hostName
private bool loaded
private NetSamples.Common.Net.Network.NodeType nodeType
private bool proxy
private bool routing
private string scopeId
Constructor Detail |
---|
public Network()
Initializes a new instance of the Network class.
Property Detail |
---|
public System.Collections.ICollection Adapters
The network adapters
public System.Collections.ICollection Addresses
The addresses for the machine
public bool DnsEnabled
Tests whether DNS is enabled
public System.Net.IPAddress[] DnsServerList
Gets the list of DNS Servers
public string DomainName
The Domain Name
public string HostName
The Host name
public int InterfaceCount
The number of network interfaces
public System.Collections.ICollection Interfaces
The network interfaces
public bool ProxyEnabled
Determines if a proxy is enabled
public bool RoutingEnabled
Determines whether Routing is enabled
public string ScopeId
The Scope ID
public NetSamples.Common.Net.Network.NodeType Type
The Node Type
Method Detail |
---|
public NetSamples.Common.Net.NetworkInterface BestInterface(System.Net.IPAddress destination)
Gets the best interface to use for the destination address.
public bool IsLocalAddress(System.Net.IPAddress address)
Determines whether the supplied IP Address matches of the machines addresses.
public bool IsMulticastAddress(System.Net.IPAddress address)
Determines whether the supplied IP Address is a multicast address.
public bool IsPrivateNetworkAddress(System.Net.IPAddress address)
Tests whether an IPAddress is in one of the address ranges designated by RFC1912 as a private address.
protected void LoadNetworkParams()
Loads the core network information for the machine. Note that the Network class is not compatible with Windows NT 4.0 as the IP Helper library is not available on that platform.
public bool RttHopCount(System.Net.IPAddress destination, uint maxhops, uint rtt, uint hopcount)
Gets the RTT and Hop count for the destination address.
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |