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

Sources
An array of source names, as returned by EventAreaBrowser.GetQualifiedSourceName
Errors
Array of HRESULTS indicating the success of placing all conditions for the specified event source into the disabled state. The errors correspond to the sources passed into the method.

Glossary Item Box

Places all conditions for the specified event sources into the disabled state. Therefore, the server will no longer generate condition-related events for these conditions. 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 disabled for all clients, and they will stop receiving the associated condition-related events.
This is an optional function that's not supported by all servers.

Syntax

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

Parameters

Sources
An array of source names, as returned by EventAreaBrowser.GetQualifiedSourceName
Errors
Array of HRESULTS indicating the success of placing all conditions for the specified event source into the disabled state. The errors correspond to the sources 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.