Method AddDevice
AddDevice(SsdpEmbeddedDevice)
Adds a child device to the Devices collection.
Declaration
public void AddDevice(SsdpEmbeddedDevice device)
Parameters
| Type | Name | Description |
|---|---|---|
| SsdpEmbeddedDevice | device | The SsdpEmbeddedDevice instance to add. |
Remarks
If the device is already a member of the Devices collection, this method does nothing.
Also sets the RootDevice property of the added device and all descendant devices to the relevant SsdpRootDevice instance.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if the |
| System.InvalidOperationException | Thrown if the |