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

SetPropertyInt() protected method

Utility function which updates the value of a PropertyInt. (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 SetPropertyInt ( PropertyInt aProperty, int aValue ) : bool
aProperty OpenHome.Net.Core.PropertyInt Property to be updated
aValue int New value for the property
return bool
        protected bool SetPropertyInt(PropertyInt aProperty, int aValue)
        {
            uint changed;
            int err = DvProviderSetPropertyInt(iHandle, aProperty.Handle(), aValue, out changed);
            if (err != 0)
            {
                throw new PropertyUpdateError();
            }
            return (changed != 0);
        }