ExceptionManagerCountsByType Method |
Namespace: Law.EdaIntegration.Exceptions
public List<KeyValuePair<ExceptionType, int>> CountsByType( ExceptionFilter filter = null )
using Law.EdaIntegration; using Law.EdaIntegration.Case; using Law.EdaIntegration.Exceptions; 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"); Console.WriteLine("Exceptions with counts"); Console.WriteLine("======================"); foreach (KeyValuePair<ExceptionType, int> kvp in edaCase.Exceptions.CountsByType()) { Console.WriteLine("{0, -16} {1, 4}", kvp.Key, kvp.Value); } } } /* This example produces the following results: Exceptions with counts ====================== EmptyFile 1 EncryptedFile 4 NoContent 10 UnknownFileType 1 */