DANSrvAE Reference
onSetFilter Method
See Also  Send comments on this topic.
NSPlugin Assembly > NSPlugin Namespace > EventSubscription Class : onSetFilter Method

_eventType
A bit mask with Red EventType enumerator values, specifying which event types are of interest. A value of 0 is an error and E_INVALIDARG will be returned.
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.

Glossary Item Box

SetFilter default handler that maybe overloaded by NSPluginAEbase.

Syntax

Visual Basic (Declaration) 
Public Overridable Function onSetFilter( _
   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 virtual int onSetFilter( 
   int _eventType,
   int[] eventCategories,
   int lowSeverity,
   int highSeverity,
   string[] areaList,
   string[] sourceList
)

Parameters

_eventType
A bit mask with Red EventType enumerator values, specifying which event types are of interest. A value of 0 is an error and E_INVALIDARG will be returned.
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.

Return Value

HResult success/error code

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

© 2004-2017 Advosol Inc. All Rights Reserved.