OPCAE.NET Reference Manual
EnableConditionByArea2 Method
See Also  Send Feedback
OPCAE.NET Namespace > OpcEventServer Class : EnableConditionByArea2 Method

Areas
An array of area names, as returned by EventAreaBrowser.GetQualifiedAreaName.
Errors
Array of HRESULTS indicating the success of placing all conditions for all sources within a specified process area into the enabled state. The errors correspond to the areas passed into the method.

Glossary Item Box

Places the specified process areas into the enabled state. Therefore, the server will now generate condition-related events for these conditions as long as the source itself is enabled and no containing area in its hierarchy is disabled. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are enabled for all clients, and they will begin receiving the associated condition-related events.
This is an optional function that's not supported by all servers.

Syntax

Visual Basic (Declaration) 
Public Function EnableConditionByArea2( _
   ByVal Areas() As String, _
   ByRef Errors As Integer() _
) As Integer
C# 
public int EnableConditionByArea2( 
   string[] Areas,
   out int[] Errors
)

Parameters

Areas
An array of area names, as returned by EventAreaBrowser.GetQualifiedAreaName.
Errors
Array of HRESULTS indicating the success of placing all conditions for all sources within a specified process area into the enabled state. The errors correspond to the areas passed into the 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.