Lai iestatītu ilgumu New ikona SharePoint (indikators, kas rāda, blakus jaunus objektus) access the SharePoint WebApplication object and set the value for DaysToShowNewIndicator.
SPWebApplication WebApp = SPWebApplication.Lookup(jaunu
Uri(WebAppURL.Text));
WebApp.DaysToShowNewIndicator = 3;
WebApp.Update();
Stevie Widera