OPCDA.NET Reference Manual
Subscribe(String,Object) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcDataBind Class > Subscribe Method : Subscribe(String,Object) Method

itemID
Fully qualified item ID
updControl
Windows control object or callback handler

Glossary Item Box

Create a DataBind subscription for one item. The item is added to the refresh group and the internal callback handler will write new values to the specified control.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Subscribe( _
   ByVal itemID As String, _
   ByVal updControl As Object _
) As Subscription
C# 
public Subscription Subscribe( 
   string itemID,
   object updControl
)

Parameters

itemID
Fully qualified item ID
updControl
Windows control object or callback handler

Return Value

Subscription object or null on error

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.