| ISourceManagerByName Method |
Retrieves a Source by its name
Namespace:
EdaIntegrationContract.Import
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax ISource ByName(
string name
)
Parameters
- name
- Type: SystemString
The name of the source to find
Return Value
Type:
ISourceA list of
ISources
Exceptions Exception | Condition |
---|
EdaApiException | Thrown if a source cannot be found with the specified name |
Examples
The following example demonstrates retrieving Source using its name.
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.ByName("Documents");
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);
}
}
See Also