Click or drag to resize

SourceManagerAddFolder Method

Note: This API is now obsolete.

Adds a folder as a source to import.

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
[ObsoleteAttribute]
public void AddFolder(
	string folderPath,
	int custodianId,
	string sourceName = ""
)

Parameters

folderPath
Type: SystemString
A full-path folder name
custodianId
Type: SystemInt32
The custodian for the resulting source(s)
sourceName (Optional)
Type: SystemString
An optional name for the newly created source. If no name is supplied it will default to the last directory name in the files path.
Exceptions
ExceptionCondition
EdaApiExceptionThrown if a folder cannot be found
Examples
The following example demonstrates adding a folder as a new document source for a custodian.
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");

        int custodianId = 21;
        string folder = @"\\NetworkDrive\Folder1\Folder2\Documents";
        edaCase.Sources.AddFolder(folder, custodianId);
    }
}
See Also