OpenSource.UPnP is a C# library for implementing Universal Plug and Play (UPnP) technology. The UPnPArgument class is used to represent an argument that is passed between devices in a UPnP network.
One example of using UPnPArgument is to define an argument for a UPnP action. The code below shows how to create a UPnPArgument object with a name and data type:
UPnPArgument arg = new UPnPArgument("Brightness", UPnPDataType.Int);
Another example is to get the value of a UPnPArgument from a UPnP service response. The code below shows how to retrieve the value of a UPnPArgument named "Volume" from a service response:
UPnPArgument arg = response.Arguments["Volume"];
int volume = (int)arg.Value;
The OpenSource.UPnP library is available as a NuGet package.
C# (CSharp) OpenSource.UPnP UPnPArgument - 30 examples found. These are the top rated real world C# (CSharp) examples of OpenSource.UPnP.UPnPArgument extracted from open source projects. You can rate examples to help us improve the quality of examples.