Method Remove
Remove(SsdpDeviceProperty)
Removes the specified property instance from the collection.
Declaration
public bool Remove(SsdpDeviceProperty customDeviceProperty)
Parameters
Type | Name | Description |
---|---|---|
SsdpDeviceProperty | customDeviceProperty | The SsdpDeviceProperty instance to remove from the collection. |
Returns
Type | Description |
---|---|
System.Boolean | True if an item was removed from the collection, otherwise false (because it did not exist or was not the same instance). |
Remarks
Only remove the specified property if that instance was in the collection, if another property with the same full name exists in the collection it is not removed.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if the |
System.ArgumentException | Thrown if the FullName property of the |
See Also
Remove(String)
Removes the property with the specified key (FullName from the collection.
Declaration
public bool Remove(string customDevicePropertyFullName)
Parameters
Type | Name | Description |
---|---|---|
System.String | customDevicePropertyFullName | The full name of the SsdpDeviceProperty instance to remove from the collection. |
Returns
Type | Description |
---|---|
System.Boolean | True if an item was removed from the collection, otherwise false (because no item exists in the collection with that key). |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if the |