Click or drag to resize

IImportPropertiesPasswords Property

Provide passwords used in analysis and extraction operations.

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