共用方式為


SPRegionalSettings.GetTimeZoneID Method

Returns the ID of the time zone used on the site based on the specified time zone settings.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
Public Function GetTimeZoneID ( _
    tzi As SPTimeZoneInformation _
) As UShort
'Usage
Dim instance As SPRegionalSettings
Dim tzi As SPTimeZoneInformation
Dim returnValue As UShort

returnValue = instance.GetTimeZoneID(tzi)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public ushort GetTimeZoneID(
    SPTimeZoneInformation tzi
)

Parameters

Return Value

Type: System.UInt16
An unsigned 16-bit integer ID that specifies the time zone.

See Also

Reference

SPRegionalSettings Class

SPRegionalSettings Members

Microsoft.SharePoint Namespace