共用方式為


SPGlobalAdmin.TimeZones Property

NOTE: This API is now obsolete.

Use the TimeZones property of the SPRegionalSettings class to get the collection of time zones used in a server farm instead. (In Windows SharePoint Services 2.0, the TimeZones property got the collection of time zones, and is maintained for backward compatibility.)

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPRegionalSettings.TimeZones instead.", False)> _
Public ReadOnly Property TimeZones As SPTimeZoneCollection
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As SPTimeZoneCollection

value = instance.TimeZones
[ObsoleteAttribute("Use SPRegionalSettings.TimeZones instead.", false)]
public SPTimeZoneCollection TimeZones { get; }

Property Value

Type: Microsoft.SharePoint.SPTimeZoneCollection
An SPTimeZoneCollection object that represents the time zones.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace