コード例 #1
0
ファイル: networkMap.cs プロジェクト: thirudravidan/MySample
 public string loaddevices(){
     string connectedDevicestring = "";
     try
     {
         NetworkInfo connectedDevices = new NetworkInfo();
         NetworkMap connectedDev = new NetworkMap();
         connectedDevices = connectedDev.getNetworkMappingInfo();
         connectedDevicestring = JsonConvert.SerializeObject(connectedDevices);
     }
     catch (Exception ex)
     {
         ErrorTracker.WriteErrorLog("networkmap.cs", "loaddevices", "", ex.Message, ex.StackTrace, "ERROR");
     }
     return connectedDevicestring;
 }