OPCDA.NET Reference Manual
SetEnable Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcGroup Class : SetEnable Method

doEnable
TRUE enables OnDataChange callbacks, FALSE disables OnDataChange callbacks.

Glossary Item Box

Controls the operation of OnDataChange. Basically setting Enable to FALSE will disable any OnDataChange callbacks with a transaction ID of 0 (those which are not the result of a Refresh). ( IOPCAsyncIO2::SetEnable )

Syntax

Visual Basic (Declaration) 
Public Function SetEnable( _
   ByVal doEnable As Boolean _
) As Integer
C# 
public int SetEnable( 
   bool doEnable
)

Parameters

doEnable
TRUE enables OnDataChange callbacks, FALSE disables OnDataChange callbacks.

Return Value

HRESULT success/error code

Requirements

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

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.