共用方式為


SPWebApplication.DefaultTimeZone Property

Gets or sets the default time zone for the Web application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property DefaultTimeZone As Integer
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Integer

value = instance.DefaultTimeZone

instance.DefaultTimeZone = value
public int DefaultTimeZone { get; set; }

Property Value

Type: System.Int32
A 32-bit integer that specifies the time zone.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace