I want to use NetworkInformation namespace and when I use system.net.networkInformation I'm getting error: "The type or namespace name 'NetworkInformation' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) "
I'm compact framework v2.0 or 3.5. compact framework should support networkInformation namespace?
I also tried to use this code:
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "ipconfig.exe";
p.Start();
p.WaitForExit();
string output = p.StandardOutput.ReadToEnd();
return output;
but the StandartOutput and redirectStandartoutput doesn't exist.
I'm trying to find out is the LAN is up or down. There is other way that I can use with compact framework?