The Server is responsible for mapping its internal severity levels to evenly span the 1..1000 range. Clients that wish to receive events of all severities should set dwLowSeverity=1 and dwHighSeverity=1000. Servers may not support all the various filter criteria. The specific filter criteria supported by a given server can be determined via the IOPCEventServer::QueryAvailableFilters method. If a filter criterion is specified that is not supported by the server, it will ignore that filter criterion and return S_FALSE.
Visual Basic (Declaration) | |
---|---|
Public Function SetFilter( _ ByVal _eventType As Integer, _ ByVal eventCategories() As Integer, _ ByVal lowSeverity As Integer, _ ByVal highSeverity As Integer, _ ByVal areaList() As String, _ ByVal sourceList() As String _ ) As Integer |
C# | |
---|---|
public int SetFilter( int _eventType, int[] eventCategories, int lowSeverity, int highSeverity, string[] areaList, string[] sourceList ) |
Parameters
- _eventType
- eventCategories
- Array of event categories of interest. These are event category codes returned by EventServer:.QueryEventCategories.
- lowSeverity
- Lowest severity of interest (inclusive).
- highSeverity
- Highest severity of interest (inclusive).
- areaList
- Array of process area strings of interest - only events or conditions in these areas will be reported. Area strings can be obtained using EventAreaBrowser.GetQualifiedAreaName. It is possible to specify areas using the wildcard syntax. Servers must support the wildcard syntax described in OPC specification Appendix A.
- sourceList
- Array of event sources of interest - only events from these sources will be reported. It is possible to specify sources using the wildcard syntax. Servers must support the wildcard syntax described in OPC specification Appendix A.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family