SourceManagerAddFiles Method |
Note: This API is now obsolete.
Namespace: Law.EdaIntegration.Import
[ObsoleteAttribute] public void AddFiles( IEnumerable<string> fileList, int custodianId, string sourceName = "" )
Exception | Condition |
---|---|
EdaApiException | Thrown if any of the files cannot be found |
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; List<string> filesToAdd = new List<string> { @"\\NetworkDrive\Folder1\HiddenWorksheet.xlsx", @"\\NetworkDrive\Folder1\SlidesWithNotes.pptx", @"\\NetworkDrive\Folder1\PPT_2003_slides.ppt", }; edaCase.Sources.AddFiles(filesToAdd, custodianId); } }