Home

Buscar

Thursday, March 8, 2012

Sharepoint :: Enable Developer Dashboard

Console Application

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:

Post a Comment