Property | Type | Description | |
---|---|---|---|
DefaultIPv4Gateway | string | ||
DefaultIPv4GatewayMac | string | ||
Description | string | ||
DhcpServer | string | ||
Dhcpv4Enabled | Dhcp | ||
Dhcpv6Server | string | ||
Guid | System.Guid | ||
IPv4Address | List |
||
IPv4BytesReceived | System.Int64 | ||
IPv4BytesSent | System.Int64 | ||
IPv4DnsServer | List |
||
IPv4Enabled | bool | ||
IPv4Gateway | List |
||
IPv4InSpeed | double | ||
IPv4InSpeedAvg10 | double | ||
IPv4InSpeedAvg20 | double | ||
IPv4InSpeedAvg40 | double | ||
IPv4Mtu | string | ||
IPv4OutSpeed | double | ||
IPv4OutSpeedAvg10 | double | ||
IPv4OutSpeedAvg20 | double | ||
IPv4OutSpeedAvg40 | double | ||
IPv6Address | IPv6HostAddress | ||
IPv6DnsServer | List |
||
IPv6Enabled | bool | ||
IPv6Gateway | List |
||
IPv6Mtu | string | ||
IPv6RouterDiscoveryEnabled | bool | ||
Index | int | ||
InterfaceMetric | ushort | ||
LocalIPv4Exit | string | ||
Loopback | NetworkInterface | ||
Mac | string | ||
Name | string | ||
NetbiosEnabled | Netbios | ||
PublicIPv4 | string | ||
PublicIPv6 | string | ||
Type | AdapterType | ||
networkInterface |
Method | Description | |
---|---|---|
AddIPv4Address ( string ip, string mask ) : void | ||
AddIPv4Address ( string name, string ip, string mask ) : void | ||
AddIPv4DnsServer ( string dns ) : void | ||
AddIPv4DnsServer ( string name, string dns ) : void | ||
AddIPv4Gateway ( int index, string gateway, string metric ) : void |
Vista and above only
|
|
AddIPv4Gateway ( string gateway, string metric ) : void | ||
AddIPv4Gateway ( string mac, string gateway, string metric ) : void |
XP only
|
|
AddIPv6Address ( int index, string ip, string prefix ) : void |
Vista and above only
|
|
AddIPv6Address ( string ip, string prefix ) : void |
Vista and above only
|
|
AddIPv6DnsServer ( int index, string dns ) : void |
Vista and above only
|
|
AddIPv6DnsServer ( string dns ) : void |
Vista and above only
|
|
AddIPv6Gateway ( int index, string gateway, string metric ) : void |
Vista and above only
|
|
AddIPv6Gateway ( string gateway, string metric ) : void |
Vista and above only
|
|
CheckDefaultIPv4Gateway ( ) : bool |
Checks if the default gateway replies to an ARP request
|
|
CheckIfIPv4Used ( string ip, System.Guid excludedGuid = newGuid() ) : string | ||
ClearGateways ( ) : void |
IPv4 and IPv6
|
|
ClearGateways ( int index ) : void | ||
ClearGateways ( string mac ) : void |
IPv4 and IPv6 IT APPEARS THAT IS NOT WORKING
|
|
ClearIPv4Addresses ( string mac, string ip, string mask ) : void |
Enables static TCP/IPv4 addressing for the target network adapter clearing any existing IPv4 address configurations. As a result, DHCP for this network adapter is disabled.
|
|
ClearIPv4DnsServers ( ) : void |
IPv4 only
|
|
ClearIPv4DnsServers ( string mac ) : void |
IPv4 only
|
|
DeleteIPv4Address ( string ip, string mask ) : void | ||
DeleteIPv4Address ( string name, string ip, string mask ) : void | ||
DeleteIPv4DnsServer ( string dns ) : void | ||
DeleteIPv4DnsServer ( string name, string dns ) : void | ||
DeleteIPv4Gateway ( int index, string gateway ) : void |
Vista and above only
|
|
DeleteIPv4Gateway ( string gateway ) : void | ||
DeleteIPv4Gateway ( string mac, string gateway ) : void |
XP only
|
|
DeleteIPv6Address ( int index, string ip ) : void |
Vista and above only
|
|
DeleteIPv6Address ( string ip ) : void |
Vista and above only
|
|
DeleteIPv6DnsServer ( int index, string dns ) : void |
Vista and above only
|
|
DeleteIPv6DnsServer ( string dns ) : void |
Vista and above only
|
|
DeleteIPv6Gateway ( int index, string gateway ) : void |
Vista and above only
|
|
DeleteIPv6Gateway ( string gateway ) : void |
Vista and above only
|
|
EditIPv4Gateway ( int index, string gateway, string metric ) : void |
Vista and above only
|
|
EditIPv4Gateway ( string gateway, string metric ) : void | ||
EditIPv4Gateway ( string mac, string gateway, string metric ) : void |
XP only
|
|
EditIPv6Gateway ( int index, string gateway, string metric ) : void |
Vista and above only
|
|
EditIPv6Gateway ( string gateway, string metric ) : void |
Vista and above only
|
|
GetAdapterStatus ( string friendlyName ) : Status | ||
GetAll ( Action |
||
GetInterfaceMetric ( string ipAddress, string subnet ) : ushort |
Win32_NetworkAdapterConfiguration
|
|
GetInterfaceMetric ( ) : void |
Win32_NetworkAdapterConfiguration
|
|
GetInternetInterface ( ) : string | ||
GetPublicIP ( ) : void | ||
GetStatistics ( ) : void | ||
Netsh ( ) : |
||
SetDhcp ( int enabled ) : void | ||
SetDhcp ( string name, int enabled ) : void | ||
SetIPv4Address ( string ip, string mask ) : void | ||
SetIPv4Address ( string name, string ip, string mask ) : void | ||
SetIPv4DnsServer ( string dns ) : void | ||
SetIPv4DnsServer ( string name, string dns ) : void | ||
SetIPv4Mtu ( int index, string mtu ) : void |
Vista and above only
|
|
SetIPv4Mtu ( string mtu ) : void |
Vista and above only
|
|
SetIPv6Mtu ( int index, string mtu ) : void |
Vista and above only
|
|
SetIPv6Mtu ( string mtu ) : void |
Vista and above only
|
|
SetInterfaceMetric ( int index, string metric ) : void |
Vista and above only
|
|
SetInterfaceMetric ( string metric ) : void | ||
SetInterfaceMetric ( string mac, string metric ) : void |
XP only
|
|
SetNetBios ( System.Guid guid, bool enabled ) : void | ||
SetNetBios ( bool enabled ) : void | ||
SetRouterDiscovery ( bool enabled ) : void |
Vista and above only
|
|
SetRouterDiscovery ( int index, bool enabled ) : void |
Vista and above only
|
public AddIPv4Address ( string ip, string mask ) : void | ||
ip | string | |
mask | string | |
return | void |
public static AddIPv4Address ( string name, string ip, string mask ) : void | ||
name | string | |
ip | string | |
mask | string | |
return | void |
public AddIPv4DnsServer ( string dns ) : void | ||
dns | string | |
return | void |
public static AddIPv4DnsServer ( string name, string dns ) : void | ||
name | string | |
dns | string | |
return | void |
public static AddIPv4Gateway ( int index, string gateway, string metric ) : void | ||
index | int | |
gateway | string | |
metric | string | |
return | void |
public AddIPv4Gateway ( string gateway, string metric ) : void | ||
gateway | string | |
metric | string | |
return | void |
public static AddIPv4Gateway ( string mac, string gateway, string metric ) : void | ||
mac | string | |
gateway | string | |
metric | string | |
return | void |
public static AddIPv6Address ( int index, string ip, string prefix ) : void | ||
index | int | |
ip | string | |
prefix | string | |
return | void |
public AddIPv6Address ( string ip, string prefix ) : void | ||
ip | string | |
prefix | string | |
return | void |
public static AddIPv6DnsServer ( int index, string dns ) : void | ||
index | int | |
dns | string | |
return | void |
public AddIPv6DnsServer ( string dns ) : void | ||
dns | string | |
return | void |
public static AddIPv6Gateway ( int index, string gateway, string metric ) : void | ||
index | int | |
gateway | string | |
metric | string | |
return | void |
public AddIPv6Gateway ( string gateway, string metric ) : void | ||
gateway | string | |
metric | string | |
return | void |
public static CheckIfIPv4Used ( string ip, System.Guid excludedGuid = newGuid() ) : string | ||
ip | string | |
excludedGuid | System.Guid | |
return | string |
public static ClearGateways ( int index ) : void | ||
index | int | |
return | void |
public static ClearGateways ( string mac ) : void | ||
mac | string | |
return | void |
public static ClearIPv4Addresses ( string mac, string ip, string mask ) : void | ||
mac | string | |
ip | string | The IPv4 address that will replace an exisiting configurations |
mask | string | The IPv4 mask that will replace an exisiting configurations |
return | void |
public static ClearIPv4DnsServers ( string mac ) : void | ||
mac | string | |
return | void |
public DeleteIPv4Address ( string ip, string mask ) : void | ||
ip | string | |
mask | string | |
return | void |
public static DeleteIPv4Address ( string name, string ip, string mask ) : void | ||
name | string | |
ip | string | |
mask | string | |
return | void |
public DeleteIPv4DnsServer ( string dns ) : void | ||
dns | string | |
return | void |
public static DeleteIPv4DnsServer ( string name, string dns ) : void | ||
name | string | |
dns | string | |
return | void |
public static DeleteIPv4Gateway ( int index, string gateway ) : void | ||
index | int | |
gateway | string | |
return | void |
public DeleteIPv4Gateway ( string gateway ) : void | ||
gateway | string | |
return | void |
public static DeleteIPv4Gateway ( string mac, string gateway ) : void | ||
mac | string | |
gateway | string | |
return | void |
public static DeleteIPv6Address ( int index, string ip ) : void | ||
index | int | |
ip | string | |
return | void |
public DeleteIPv6Address ( string ip ) : void | ||
ip | string | |
return | void |
public static DeleteIPv6DnsServer ( int index, string dns ) : void | ||
index | int | |
dns | string | |
return | void |
public DeleteIPv6DnsServer ( string dns ) : void | ||
dns | string | |
return | void |
public static DeleteIPv6Gateway ( int index, string gateway ) : void | ||
index | int | |
gateway | string | |
return | void |
public DeleteIPv6Gateway ( string gateway ) : void | ||
gateway | string | |
return | void |
public static EditIPv4Gateway ( int index, string gateway, string metric ) : void | ||
index | int | |
gateway | string | |
metric | string | |
return | void |
public EditIPv4Gateway ( string gateway, string metric ) : void | ||
gateway | string | |
metric | string | |
return | void |
public static EditIPv4Gateway ( string mac, string gateway, string metric ) : void | ||
mac | string | |
gateway | string | |
metric | string | |
return | void |
public static EditIPv6Gateway ( int index, string gateway, string metric ) : void | ||
index | int | |
gateway | string | |
metric | string | |
return | void |
public EditIPv6Gateway ( string gateway, string metric ) : void | ||
gateway | string | |
metric | string | |
return | void |
public static GetAdapterStatus ( string friendlyName ) : Status | ||
friendlyName | string | |
return | Status |
public static GetAll ( Action |
||
UpdateStatus | Action |
|
return | NetworkInterface>.ConcurrentDictionary |
public static GetInterfaceMetric ( string ipAddress, string subnet ) : ushort | ||
ipAddress | string | IPv4 or IPv6 |
subnet | string | Dot-decimal-notation for IPv4 (i.e. "255.255.255.0") and CIDR for IPv6 (i.e. "64") |
return | ushort |
public static GetInternetInterface ( ) : string | ||
return | string |
public static SetDhcp ( string name, int enabled ) : void | ||
name | string | |
enabled | int | |
return | void |
public SetIPv4Address ( string ip, string mask ) : void | ||
ip | string | |
mask | string | |
return | void |
public static SetIPv4Address ( string name, string ip, string mask ) : void | ||
name | string | |
ip | string | |
mask | string | |
return | void |
public SetIPv4DnsServer ( string dns ) : void | ||
dns | string | |
return | void |
public static SetIPv4DnsServer ( string name, string dns ) : void | ||
name | string | |
dns | string | |
return | void |
public static SetIPv4Mtu ( int index, string mtu ) : void | ||
index | int | |
mtu | string | |
return | void |
public static SetIPv6Mtu ( int index, string mtu ) : void | ||
index | int | |
mtu | string | |
return | void |
public static SetInterfaceMetric ( int index, string metric ) : void | ||
index | int | |
metric | string | |
return | void |
public SetInterfaceMetric ( string metric ) : void | ||
metric | string | |
return | void |
public static SetInterfaceMetric ( string mac, string metric ) : void | ||
mac | string | |
metric | string | |
return | void |
public static SetNetBios ( System.Guid guid, bool enabled ) : void | ||
guid | System.Guid | |
enabled | bool | |
return | void |
public SetRouterDiscovery ( bool enabled ) : void | ||
enabled | bool | |
return | void |
public static SetRouterDiscovery ( int index, bool enabled ) : void | ||
index | int | |
enabled | bool | |
return | void |
public static NetworkInterface Loopback | ||
return | NetworkInterface |