Ejemplo n.º 1
0
 /// <summary>
 /// Save a name value pair to the common properties list using current sharepoint context
 /// </summary>
 /// <param name="name"></param>
 /// <param name="value"></param>
 public static void Save(string name, string value)
 {
     FarmPropertyBag.Save(name, value);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Encrypt and store a string into the common properties list for corresponding name, passing in appropriate web application
 /// NOTE: if you have a valid SharePoint context, use the version of this method that does not require the webApp parameter.
 /// This method is for testing with the Common Properties Maintenance application
 /// </summary>
 /// <param name="name"></param>
 /// <param name="value"></param>
 /// <param name="webApp"></param>
 public static void StoreEncryptedString(string name, string value, SPWebApplication webApp)
 {
     //Save(name, EncryptString(value, webApp), webApp);
     FarmPropertyBag.Save(name, EncryptString(value, webApp));
 }