|  | SourceManagerById Method  | 
 
                Retrieves a Source by its unique identifier
            
 
    Namespace: 
   Law.EdaIntegration.Import
    Assembly:
   Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
 Syntax
Syntaxpublic Source ById(
	int id
)
Parameters
- id
- Type: SystemInt32
 The unique identifier of the source to find
Return Value
Type: 
SourceA list of 
Sources
 Exceptions
Exceptions| Exception | Condition | 
|---|
| EdaApiException | Thrown if a source cannot be found with the specified Id | 
 Examples
Examples
                The following example demonstrates retrieving Source using its id.
                
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");
        Source 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);
    }
}
 See Also
See Also