Click or drag to resize

ISourceManagerById Method

Retrieves a Source by its unique identifier

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
ISource ById(
	int id
)

Parameters

id
Type: SystemInt32
The unique identifier of the source to find

Return Value

Type: ISource
A list of ISources
Exceptions
ExceptionCondition
EdaApiExceptionThrown if a source cannot be found with the specified Id
Examples
The following example demonstrates retrieving Source using its id.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Import;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        ISource source = edaCase.Sources.ById(15);
        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: Documents
Type: Folder
CustodianId: 4
Description: \\NetworkDrive\Folder1\Folder2\Documents
 */
See Also