SourceManagerByImportSet Method |
Namespace: Law.EdaIntegration.Import
public IEnumerable<Source> ByImportSet( int importSetId, int custodianId = 0 )
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"); foreach(Source source in edaCase.Sources.ByImportSet(3)) { Console.WriteLine("Id: " + source.Id); Console.WriteLine("Name: " + source.Name); Console.WriteLine("Type: " + source.Type); Console.WriteLine("CustodianId: " + source.CustodianId); Console.WriteLine("Description: " + source.Description); } } } /* This example produces the following results: Id: 15 Name: Petes Data Type: Folder CustodianId: 4 Id: 16 Name: Bobs Data Type: Folder CustodianId: 5 */