/// <summary> /// Updates the given property. /// </summary> /// <param name="document"></param> /// <param name="nodeId"></param> /// <param name="interface"></param> /// <param name="property"></param> /// <param name="value"></param> void ClientUpdate(Document document, int nodeId, string @interface, string property, JValue value) { Contract.Requires <ArgumentNullException>(document != null); Contract.Requires <ArgumentOutOfRangeException>(nodeId > 0); Contract.Requires <ArgumentException>(!string.IsNullOrWhiteSpace(@interface)); Contract.Requires <ArgumentException>(!string.IsNullOrWhiteSpace(property)); var node = (XNode)document.Xml.ResolveObjectId(nodeId); if (node == null) { return; } RemoteHelper.Update(node, @interface, property, value); }