Click or drag to resize

IExceptionManagerFilterValues Method

Retrieves the values and the count of exceptions for a specified filter type.

Namespace:  EdaIntegrationContract.Exceptions
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
List<IExceptionFilterValue> FilterValues(
	ExceptionFilterType filterType
)

Parameters

filterType
Type: EdaIntegrationContract.ExceptionsExceptionFilterType
The type of filter to return values for

Return Value

Type: ListIExceptionFilterValue
A list of IExceptionFilterValue representing the unique identifier of the value, its description and the count of exceptions for that value
Examples
The following example demonstrates retrieving the count of exceptions for all file types.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Exceptions;

class Sample
{
    static void Main()
    {
        /* Connect to the case */
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        /* Set up the output formatting */
        string outputFormat = "{0, 6}  {1, -50} {2, 7}";
        Console.WriteLine(outputFormat, "Exc Id", "Message", "Exc Cnt");
        Console.WriteLine(outputFormat, new string('=', 6), new string('=', 50), new string('=', 7));

        /* Print each filter value */
        foreach (var exceptionFilterValue in edaCase.Exceptions.FilterValues(ExceptionFilterType.FileType))
        {
            Console.WriteLine("{0, 6} {1, -50} {2, 4}", exceptionFilterValue.Id, exceptionFilterValue.Description, exceptionFilterValue.ExceptionCount);
        }
    }
}
/*
This example produces the following results:

Exc Id  FileType                                           Exc Cnt
======  ================================================== =======
   185  JPEG File Interchange Format Image                       4
  2210  MS PowerPoint 2007-2010 Presentation (Open XML)          2
  2208  MS Word 2007-2010 Document (Open XML)                    5
   229  MS Word 97-2003 Document (OLE)                           2
     0  Unidentified                                             3*/
See Also