Example #1
0
 /// <summary>
 /// Queries a state variable on the service.
 /// </summary>
 /// <param name="name">The name of the state variable.</param>
 /// <returns>The value of the state variable.</returns>
 /// <exception cref="UPnPException"></exception>
 /// <exception cref="NotSupportedException"></exception>
 public object QueryStateVariable(string name)
 {
     try
     {
         if (msCOMService != null)
         {
             return(msCOMService.QueryStateVariable(name));
         }
         else
         {
             throw new NotSupportedException();
         }
     }
     catch (COMException loE)
     {
         throw new UPnPException(loE);
     }
 }