Compartilhar via


SPRegionalSettings.AdjustHijriDays property

Obtém ou define o número de dias para estender ou reduzir o mês atual em calendários Hijri.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
Public Property AdjustHijriDays As Short
    Get
    Set
'Uso
Dim instance As SPRegionalSettings
Dim value As Short

value = instance.AdjustHijriDays

instance.AdjustHijriDays = value
public short AdjustHijriDays { get; set; }

Property value

Type: System.Int16
Um inteiro de 16 bits que especifica o número de dias.

Examples

O exemplo de código a seguir reduz o mês atual no calendário islâmico para um site da Web por 1.

Dim siteCollection As New SPSite("https://localhost")
Try
    Dim rootWebSite As SPWeb = siteCollection.RootWeb
    Dim regionalsettings As SPRegionalSettings = rootWebSite.RegionalSettings
    regionalsettings.AdjustHijriDays = - 1

    rootWebSite.Update()

    rootWebSite.Dispose()
Finally
    siteCollection.Dispose()
End Try
using (SPSite oSiteCollection = new SPSite("https://localhost"))
{
    using(SPWeb oWebsiteRoot = oSiteCollection.RootWeb)
    { 
        SPRegionalSettings oRegionalSettings = oWebsiteRoot.RegionalSettings; 
        oRegionalSettings.AdjustHijriDays = -1; 
        oWebsiteRoot.Update(); 
    }
}

Dica

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.

Ver também

Referência

SPRegionalSettings class

SPRegionalSettings members

Microsoft.SharePoint namespace