System.Network.Wireless.primaryDNSAddress Property
Gets the Internet Protocol (IP) address of the first available Domain Name System (DNS) server on the wireless network.
This property is read-only.
Syntax
propVal = System.Network.Wireless.primaryDNSAddress()
Parameters
- strDNSAddress [out]
Retrieves the IP address.
Remarks
If the system has multiple network interfaces, only the active one is detected.
DNS servers are used by Windows systems to cross-reference computer or domain names with IP addresses.
Examples
The following example demonstrates how to use the primaryDNSAddress property.
var mytext = "address: " + System.Network.Wireless.primaryDNSAddress;
Requirements
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
IDL | Sidebar.idl |
DLL | Sidebar.Exe version 1.00 or later |
See Also
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK