public override Boolean Execute(TargetDocument obj) { obj.RemoveProperty(Path); obj.CreateOrUpdateProperty(Path,Value, true); return true; }
public override Boolean Execute(TargetDocument obj) { if (obj.ContainsPath(new Path(_from))) { //remove the property obj.RemoveProperty(new Path(_from)); //add the new one obj.CreateOrUpdateProperty(Path, Value, true); } return true; }
public override Boolean Execute(TargetDocument obj) { //according to RFC 6902 if the path does not exists than the operation fails if (obj.ContainsPath(Path)) { obj.RemoveProperty(Path); return true; } else { return false; } }