protected void update_folder_time(SPFolder current_folder)
 {
     if (current_folder == null || !current_folder.Url.Contains("/")) return;
     current_folder.SetProperty("Name", current_folder.Name);
     current_folder.Update();
     update_folder_time(current_folder.ParentFolder);
 }
Beispiel #2
0
 protected void update_folder_time(SPFolder current_folder)
 {
     if (current_folder == null || !current_folder.Url.Contains("/"))
     {
         return;
     }
     current_folder.SetProperty("Name", current_folder.Name);
     current_folder.Update();
     update_folder_time(current_folder.ParentFolder);
 }
Beispiel #3
0
        public void SaveToListProperty(SPList list)
        {
            SPFolder folder = list.RootFolder;

            IEnumerable <FieldInfo> fields = GetCfgFields();

            foreach (FieldInfo field in fields)
            {
                folder.SetProperty(PropertyKeyPrefix + field.Name, Convert.ToString(field.GetValue(this)));
            }

            bool allowUnsafeUpdates = list.ParentWeb.AllowUnsafeUpdates;

            list.ParentWeb.AllowUnsafeUpdates = true;
            folder.Update();
            list.ParentWeb.AllowUnsafeUpdates = allowUnsafeUpdates;
        }
Beispiel #4
0
 public void SetPropertyBagValue(string key, string value)
 {
     m_folder.SetProperty(key, value);
 }