Click or drag to resize

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
C#
public string TimeZoneId { get; set; }

Property Value

Type: String
Exceptions
ExceptionCondition
EdaApiExceptionAn 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.
C#
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");

        // Set the Id of the UTC timezone
        edaCase.Exports.Properties.TimeZoneId = System.TimeZoneInfo.Utc.Id;

        // Save the changes to the case
        edaCase.Exports.UpdateProperties();

        // Get the time zone name from the current Id
        string timeZoneId = edaCase.Exports.Properties.TimeZoneId;

        // Output the standard name of the time zone
        Console.WriteLine("Time zone: {0}", System.TimeZoneInfo.FindSystemTimeZoneById(timeZoneId).StandardName);
    }
}
/*
This example produces the following results:

Time zone: UTC*/
See Also