示例#1
0
文件: TestProxy.cs 项目: sewood/ohNet
 private void PrintDeviceInfo(string aPrologue, ControlPoint.CpDevice aDevice)
 {
     string location;
     aDevice.GetAttribute("Upnp.Location", out location);
     string friendlyName;
     aDevice.GetAttribute("Upnp.FriendlyName", out friendlyName);
     Console.Write(aPrologue +
                   "\n    udn = " + aDevice.Udn() + 
                   "\n    location = " + location +
                   "\n    name = " + friendlyName + "\n");
 }