共用方式為


SPGlobalAdmin.TimeZones property

NOTE: This API is now obsolete.

使用SPRegionalSettings類別之TimeZones屬性來取得改為在伺服器陣列中所使用的時區的集合。(在Windows SharePoint Services 2.0, TimeZones屬性 got 的時區集合以及維護回溯相容性。)

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

Syntax

'宣告
<ObsoleteAttribute("Use SPRegionalSettings.TimeZones instead.", False)> _
Public ReadOnly Property TimeZones As SPTimeZoneCollection
    Get
'用途
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
代表時區SPTimeZoneCollection物件。

請參閱

參照

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace