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

name
Name of the DataBind instance.
requestedUpdateRate
The fastest rate the server is allowed to make data changed callbacks. The server may use a modified rate if the requested rate is outside of the server's allowed range.
tag
This object is passed to the competion handler and allows the user to pass any information that may be needed in the completion handler. null (nothing) can be specified if the application does not require to pass any information.
onCompleted
Competion notification handler. void xxx( BGException ex, BGDataBind dbind, object tag ){}

Glossary Item Box

Available in the OPCDA.NET Professional Edition only.
A new BGDataBind object is created and added to this BGServer instance.
A BGDataBind is required for the user to ba able to make OpcDataBind subscriptions. The difference to the OpcDataBind class is only in the handling of the Subscribe calls. In the BGDataBind class these calls are queued and executed in a background thread in order to prevent the application to be unresponsive for some possibly long timeout intervals.

Syntax

Visual Basic (Declaration) 
Public Sub AddDataBind( _
   ByVal name As String, _
   ByVal requestedUpdateRate As Integer, _
   ByVal tag As Object, _
   ByVal onCompleted As OnBGSrvAddDataBind _
) 

Parameters

name
Name of the DataBind instance.
requestedUpdateRate
The fastest rate the server is allowed to make data changed callbacks. The server may use a modified rate if the requested rate is outside of the server's allowed range.
tag
This object is passed to the competion handler and allows the user to pass any information that may be needed in the completion handler. null (nothing) can be specified if the application does not require to pass any information.
onCompleted
Competion notification handler. void xxx( BGException ex, BGDataBind dbind, object tag ){}

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.