共用方式為


SPRegionalSettings.GetTimeZoneID method

會傳回在指定的時區設定為基礎的網站上使用的時區的識別碼。

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

Syntax

'宣告
Public Function GetTimeZoneID ( _
    tzi As SPTimeZoneInformation _
) As UShort
'用途
Dim instance As SPRegionalSettings
Dim tzi As SPTimeZoneInformation
Dim returnValue As UShort

returnValue = instance.GetTimeZoneID(tzi)
public ushort GetTimeZoneID(
    SPTimeZoneInformation tzi
)

參數

傳回值

Type: System.UInt16
指定的時區正負號的 16 位元整數識別碼。

請參閱

參照

SPRegionalSettings class

SPRegionalSettings members

Microsoft.SharePoint namespace