OPCAE.NET Reference Manual
SelectReturnedAttributes Method
See Also  Send Feedback
OPCAE.NET Namespace > EventSubscriptionMgt Class : SelectReturnedAttributes Method

EventCategory
The specific event category for which the list of attributes applies. These are returned from the QueryEventCategories method.
AttributeIDs
The list IDs of the attributes to return with event notifications for the event type and event category specified. These are returned from the QueryEventAttributes method.

Glossary Item Box

For each Event Category, SelectReturnedAttributes sets the attributes to be returned with event notifications in the IOPCEventSink::OnEvent callback. This method can be called multiple times in order to specify the attributes to return for each unique event type and event category pair. For a given event type and event category pair, the attributes returned can be “cleared” by setting the AttributeIDs array length to zero. If this is called multiple times for the same event type and event category pair, then the latest call will be in effect.

Syntax

Visual Basic (Declaration) 
Public Function SelectReturnedAttributes( _
   ByVal EventCategory As Integer, _
   ByVal AttributeIDs() As Integer _
) As Integer
C# 
public int SelectReturnedAttributes( 
   int EventCategory,
   int[] AttributeIDs
)

Parameters

EventCategory
The specific event category for which the list of attributes applies. These are returned from the QueryEventCategories method.
AttributeIDs
The list IDs of the attributes to return with event notifications for the event type and event category specified. These are returned from the QueryEventAttributes method.

Return Value

HRESULTS error/success code.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

© 2002-2018 Advosol Inc. All Rights Reserved.