Thursday, March 8, 2012

Sharepoint :: Enable Developer Dashboard

using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;

namespace EnableDeveloperDashboard {
   class Program {
      static void Main() {
         SPDeveloperDashboardSettings settings =
 SPDeveloperDashboardSettings.ContentService.DeveloperDashboardSettings;

         settings.DisplayLevel = SPDeveloperDashboardLevel.On;
         settings.TraceEnabled = True;
         settings.Update();
         }
      }
}

No comments: