BACnet.Client.Db.UpdateObjectCommand.Execute C# (CSharp) Method

Execute() public method

Executes the command
public Execute ( ObjectInfo info ) : bool
info ObjectInfo The descriptor to update
return bool
        public bool Execute(ObjectInfo info)
        {
            bool ret = false;

            lock (this)
            {
                _deviceInstance.Value = info.DeviceInstance;
                _objectType.Value = info.ObjectIdentifier.Type;
                _instance.Value = info.ObjectIdentifier.Instance;
                _name.Value = info.Name;
                _props.Value = info.SaveProperties();
                ret = (_command.ExecuteNonQuery() == 1);
            }

            return ret;
        }