public override Boolean Execute(TargetDocument obj)
 {
     if (Value != null)
     {
         obj.CreateOrUpdateProperty(Path, obj[Path].ToString() + Value.ToString(), true);
         return true;
     }
     else
     {
         obj.CreateOrUpdateProperty(Path, obj[Path].ToString() + obj[ValueOf].ToString(), true);
         return true;
     }
 }
Ejemplo n.º 2
0
        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;
        }