| ExportPropertiesTimeZoneId Property |
The Id of the selected timezone for the case.
Namespace:
Law.EdaIntegration.Exports
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax public string TimeZoneId { get; set; }
Property Value
Type:
StringExceptions Exception | Condition |
---|
EdaApiException | An exception is thrown if the time zone id is not valid. |
Remarks
The default value is the Id of UTC time.
Examples
This example demonstrates how to set and retrieve the Id of a time zone item.
using Law.EdaIntegration;
class Sample
{
public static void Main()
{
string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
EdaIntegration edaIntegration = new EdaIntegration();
edaIntegration.InitializeEnvironment(connectionString);
Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
edaCase.Exports.Properties.TimeZoneId = System.TimeZoneInfo.Utc.Id;
edaCase.Exports.UpdateProperties();
string timeZoneId = edaCase.Exports.Properties.TimeZoneId;
Console.WriteLine("Time zone: {0}", System.TimeZoneInfo.FindSystemTimeZoneById(timeZoneId).StandardName);
}
}
See Also