OpenHome.Net.Device.DvProvider.SetPropertyUint C# (CSharp) Method

SetPropertyUint() protected method

Utility function which updates the value of a PropertyUint. (Not intended for external use)
If the property value has changed and the properties are not locked (PropertiesLock() called more recently than PropertiesUnlock()), publication of an update is scheduled. Throws ParameterValidationError if the property has a range of allowed values and the new value is not in this range
protected SetPropertyUint ( PropertyUint aProperty, uint aValue ) : bool
aProperty OpenHome.Net.Core.PropertyUint Property to be updated
aValue uint New value for the property
return bool
        protected bool SetPropertyUint(PropertyUint aProperty, uint aValue)
        {
            uint changed;
            int err = DvProviderSetPropertyUint(iHandle, aProperty.Handle(), aValue, out changed);
            if (err != 0)
            {
                throw new PropertyUpdateError();
            }
            return (changed != 0);
        }