Пример #1
0
 public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
 {
     using (var ca = SPWebManager.GetCentralAdminWeb())
     {
         Setup.Uninstall(ca);
     }
 }
Пример #2
0
 public static string GetSpongeUrl()
 {
     using (var ca = SPWebManager.GetCentralAdminWeb())
         return(ca.Url + "/" + Constants.SpongeWebUrl);
 }
Пример #3
0
 public static SPWeb GetSpongeWeb()
 {
     using (var ca = SPWebManager.GetCentralAdminWeb())
         return(ca.Webs[Constants.SpongeWebUrl]);
 }