Click or drag to resize

TimeZoneLoadFromRegistry Method

Load a TimeZone from the specified Windows registry key.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool LoadFromRegistry(
	RegistryKey rootKey,
	string regKey,
	out TimeZone tzNew
)

Parameters

rootKey
Type: Microsoft.Win32RegistryKey
The registry root (varies by Windows version).
regKey
Type: SystemString
The key of interest (e.g. "Eastern Standard Time").
tzNew
Type: NetQuarryTimeZone
The TimeZone object representing the item (not meaningful if this method returns false).

Return Value

Type: Boolean
True if the resulting TimeZone object is valid, else false.
Remarks
The regKey itself is generally obtained from the registry because Windows registry timezone keys vary by Windows version and locale.
See Also