Click or drag to resize

IExportPropertiesTimeZoneId Property

The Id of the selected timezone for the case.

Namespace:  EdaIntegrationContract.Exports
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
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()
    {
        EdaIntegration edaIntegration = EdaIntegration.ConnectToExplore();
        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