Method RemoveDevice
RemoveDevice(SsdpRootDevice)
Removes a device (and it's children) from the list of devices being published by this server, making them undiscoverable.
Declaration
public void RemoveDevice(SsdpRootDevice device)
Parameters
Type | Name | Description |
---|---|---|
SsdpRootDevice | device | The SsdpDevice instance to add. |
Implements
Remarks
Removing a device causes "byebye" notification messages to be sent immediately, advising clients of the device/service becoming unavailable. We recommend removing the device from the published list before shutting down the actual device/service, if possible.
This method does nothing if the device was not found in the collection.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if the |