Class SsdpRootDevice
Represents a 'root' device, a device that has no parent. Used for publishing devices and for the root device in a tree of discovered devices.
Inherited Members
Namespace: Rssdp
Assembly: cs.temp.dll.dll
Syntax
public class SsdpRootDevice : SsdpDevice
Remarks
Child (embedded) devices are represented by the SsdpDevice in the Devices property.
Root devices contain some information that applies to the whole device tree and is therefore not present on child devices, such as CacheLifetime and Location.
Constructors
Name | Description |
---|---|
SsdpRootDevice() | Default constructor. |
SsdpRootDevice(Uri, TimeSpan, String) | Deserialisation constructor. |
Properties
Name | Description |
---|---|
CacheLifetime | Specifies how long clients can cache this device's details for. Optional but defaults to System.TimeSpan.Zero which means no-caching. Recommended value is half an hour. |
Location | Gets or sets the URL used to retrieve the description document for this device/tree. Required. |
UrlBase | The base URL to use for all relative url's provided in other propertise (and those of child devices). Optional. |
Methods
Name | Description |
---|---|
ToDescriptionDocument() | Saves the property values of this device object to an a string in the full UPnP device description XML format, including child devices and outer root node and XML document declaration. |