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.
Visual Basic (Declaration) | |
---|---|
Public Sub AddDataBind( _ ByVal name As String, _ ByVal requestedUpdateRate As Integer, _ ByVal tag As Object, _ ByVal onCompleted As OnBGSrvAddDataBind _ ) |
C# | |
---|---|
public void AddDataBind( string name, int requestedUpdateRate, object tag, OnBGSrvAddDataBind onCompleted ) |
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 ){}