SPRegionalSettings.AdjustHijriDays Property
Gets or sets the number of days to extend or reduce the current month in Hijri calendars.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
The following code example reduces the current month in the Hijri calendar for a Web site by 1.
using (SPSite oSiteCollection = new SPSite("http://localhost")) { using(SPWeb oWebsiteRoot = oSiteCollection.RootWeb) { SPRegionalSettings oRegionalSettings = oWebsiteRoot.RegionalSettings; oRegionalSettings.AdjustHijriDays = -1; oWebsiteRoot.Update(); } }
Note |
|---|
Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects. |
Note