コード例 #1
0
        public override Boolean Execute(TargetDocument obj)
        {
            obj.RemoveProperty(Path);

            obj.CreateOrUpdateProperty(Path,Value, true);

            return true;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 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;
     }
 }