Share via


SPTimeZone.ID property

Gets or sets the ID of the time zone.

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

Syntax

'Declaration
Public Property ID As UShort
    Get
    Set
'Usage
Dim instance As SPTimeZone
Dim value As UShort

value = instance.ID

instance.ID = value
public ushort ID { get; set; }

Property value

Type: System.UInt16
A 16-bit integer that specifies the ID.

Remarks

Setting the ID requires a site update through use of the Update method of the SPWebclass. After setting SPWeb.RegionalSettings.TimeZone.ID to a new value, for the change to take effect, it is necessary to call the **SPWeb()**Update method and the **SPUser()**Update method.

See also

Reference

SPTimeZone class

SPTimeZone members

Microsoft.SharePoint namespace