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
)
Public Shared Function LoadFromRegistry (
rootKey As RegistryKey,
regKey As String,
<OutAttribute> ByRef tzNew As TimeZone
) As Boolean
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:
BooleanTrue 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