ISystemTimeManagerGetSystemTimeInfo Method |  |
Get the list of time zone information.
Namespace: Bosch.Vms.SDKAssembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
SyntaxIEnumerable<SystemTimeInfo> GetSystemTimeInfo()
Return Value
IEnumerableSystemTimeInfoTime zone information.
Exampletry
{
IEnumerable<SystemTimeInfo> info = api.SystemTimeManager.GetSystemTimeInfo();
foreach (SystemTimeInfo systemTimeInfo in info)
{
switch (systemTimeInfo.SystemInfoKind)
{
case SystemInfoKind.Client:
MessageBox.Show(string.Format("Operator Client time zone is: {0}", systemTimeInfo.TimeZoneInfo));
break;
case SystemInfoKind.Server:
MessageBox.Show(string.Format("Management Server time zone is: {0}", systemTimeInfo.TimeZoneInfo));
break;
default:
MessageBox.Show("Time zone is not available.");
break;
}
}
}
catch (SdkException)
{
}
See Also