IExceptionManagerCountsByType Method |
Namespace: EdaIntegrationContract.Exceptions
List<KeyValuePair<ExceptionType, int>> CountsByType( IExceptionFilter filter = null )
using EdaIntegrationContract; using EdaIntegrationContract.Case; using EdaIntegrationContract.Exceptions; class Sample { static void Main() { var edaIntegration = new EdaIntegration().ConnectToExplore(); ICase 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 */