Click or drag to resize

ImportPropertiesPasswords Property

Provide passwords used in analysis and extraction operations.

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public IEnumerable<string> Passwords { get; set; }

Property Value

Type: IEnumerableString
Remarks
Duplicate and blank passwords will be removed from the list when set. There is no limit to the number of passwords that can be defined but as the number of passwords increase, performance of the analysis and extraction process will decrease. Items in this list are case-sensitive.
Examples
This example demonstrates how to set and retrieve the list of Passwords.
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");

        // Create the list of passwords
        List<string> passwords = new List<string> { "abcdef", "123456", "qwerty" };

        // Set the Passwords list
        edaCase.Imports.Properties.Passwords = passwords;

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

        // Get the value
        foreach (string pwd in edaCase.Imports.Properties.Passwords)
        {
            Console.WriteLine("Password: {0}", pwd);
        }
    }
}
/*
This example produces the following results:

Password: abcdef
Password: 123456
Password: qwerty
 */
See Also