Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPTimeZoneCollection class

Represents a collection of SPTimeZone objects.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableTypeAttribute(Name = "TimeZoneCollection", ServerTypeId = "117cbf47-7e74-4165-b26b-c24180ab2095", 
	CollectionChildItemType = typeof(SPTimeZone), CollectionIndexerMethodClientName = "GetById", 
	SampleUrl = "{apiroot}/web/RegionalSettings/TimeZones")]
[SubsetCallableTypeAttribute]
public class SPTimeZoneCollection : SPBaseCollection

Use the TimeZones property of either the SPRegionalSettings or SPGlobalAdmin class to return the collection of time zones used in the site or in the deployment of SharePoint Foundation. Use an indexer to return a single time zone from the collection. For example, if the collection is assigned to a variable named myTimeZone, use myTimeZone[index] in Microsoft Visual C#, or myTimeZone(index) in Microsoft Visual Basic, where index is the index number of the time zone in the collection.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.