This topic has not yet been rated - Rate this topic

SPRegionalSettings.AdjustHijriDays Property

Gets or sets the number of days to extend or reduce the current month in Hijri calendars.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public short AdjustHijriDays { get; set; }

Property Value

Type: System.Int16
A 16-bit integer that specifies the number of days.

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(); 
    }
}
NoteNote

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ