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

itemID
Fully qualified item ID
updControl
Windows control object or callback handler
index
Item index in the control
index2
Additional index for some controls. In a ListView control it defines the column.
fmt
Object with format information

Glossary Item Box

Create a 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 at the specified index. The value is formatted according the format definition object.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Subscribe( _
   ByVal itemID As String, _
   ByVal updControl As Object, _
   ByVal index As Integer, _
   ByVal index2 As Integer, _
   ByVal fmt As DataBindFormat _
) As Subscription

Parameters

itemID
Fully qualified item ID
updControl
Windows control object or callback handler
index
Item index in the control
index2
Additional index for some controls. In a ListView control it defines the column.
fmt
Object with format information

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.