Monday, August 4, 2008

Changing Quota Template Names in SharePoint V2

Quota template helps you to manage the grown in site within Admin control

SPGlobalAdmin globalAdmin = new SPGlobalAdmin();

SPGlobalConfig globalConfig = globalAdmin.Config;

SPQuotaTemplateCollection templates = globalConfig.QuotaTemplates;

foreach(SPQuotaTemplate template in templates)

{

if(template.Name == “Personal Site”)

{

template.Name = “Modified Personal Site”;

template.Add(template);

Console.WriteLine(“Quota Template name changed!!”);

break;

}

}


more

No comments: