View RSS Feed

jamesb

  1. Customising SharePoint Usage Stats - Part Two Code

    by , 18th February 2011 at 10:56 AM
    Code:
    SPFarm farm = this.Farm;
    int intTime;
    foreach (SPService service in farm.Services)
    {
    
    if (service isSPWebService) {
    SPWebService webService = (SPWebService)service; foreach (SPWebApplication webApplication in webService.WebApplications) {
    foreach (SPSite site in webApplication.Sites) {
    OrganizationProfileManager organizationManager = newOrganizationProfileManager(SPServiceContext.GetContext(site));
    OrganizationProfile
    ...