SPTimeZoneCollection class
表示SPTimeZone物件的集合。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.SPBaseCollection
Microsoft.SharePoint.SPTimeZoneCollection
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Class SPTimeZoneCollection _
Inherits SPBaseCollection
'用途
Dim instance As SPTimeZoneCollection
public class SPTimeZoneCollection : SPBaseCollection
備註
您可以使用的SPRegionalSettings或SPGlobalAdmin類別的TimeZones屬性,傳回在站台或SharePoint Foundation的部署所用的時區的集合。若要從集合傳回單一時區使用索引子。例如,如果集合指派給一個名為myTimeZone變數中,使用myTimeZone[index]在 Microsoft Visual C# 或myTimeZone(index)在 Microsoft Visual Basic, index所在的時區,集合中的索引編號。
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.