SPRegionalSettings.GetTimeZoneIDByKeyName method
返回顯示關聯的 sharepoint timezone 識別碼指定 Windows 時區識別碼。Windows tzids 是在登錄中碼 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows 組時區區域分支中的子機碼。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetTimeZoneIDByKeyName ( _
keyName As String _
) As UShort
'用途
Dim keyName As String
Dim returnValue As UShort
returnValue = SPRegionalSettings.GetTimeZoneIDByKeyName(keyName)
public static ushort GetTimeZoneIDByKeyName(
string keyName
)
參數
keyName
Type: System.StringWindows tzid
傳回值
Type: System.UInt16
Sharepoint timezone 識別碼對應至 Windows tzid