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

Glossary Item Box

Available in the OPCDA.NET Professional Edition only.
Bind an OPC server item to a simple control that does not need additional parameters.
The created Subscription object is returned to the user as an argument of the completion handler. The Subscription object allows the user to access properties of the Subscription and call methods of the underlaying classes. NOTE: It is not recommended to use the methods of the Subscription objects. Such calls is handled in the calling thread and may block the user thread for possibly long timeout intervals.

Overload List

OverloadDescription
Subscribe(String,Object,Object,OnBGSubscribe)Available in the OPCDA.NET Professional Edition only.
Bind an OPC server item to a simple control that does not need additional parameters.
The created Subscription object is returned to the user as an argument of the completion handler. The Subscription object allows the user to access properties of the Subscription and call methods of the underlaying classes. NOTE: It is not recommended to use the methods of the Subscription objects. Such calls is handled in the calling thread and may block the user thread for possibly long timeout intervals.  
Subscribe(String,Object,Int32,Object,OnBGSubscribe)Available in the OPCDA.NET Professional Edition only.
Bind an OPC server item to an element of a control. The meaning of the index parameter depends on the control. In most cases it's the index of an array element, such as an Item[] element in a ListBox control.
The created Subscription object is returned to the user as an argument of the completion handler. The Subscription object allows the user to access properties of the Subscription and call methods of the underlaying classes. NOTE: It is not recommended to use the methods of the Subscription objects. Such calls is handled in the calling thread and may block the user thread for possibly long timeout intervals.  
Subscribe(String,Object,DataBindFormat,Object,OnBGSubscribe)Available in the OPCDA.NET Professional Edition only.
Bind an OPC server item to a simple control that does not need additional parameters. The OPC server item value is transformed and formatted according the definitions in the DataBindFormat parameter.
The created Subscription object is returned to the user as an argument of the completion handler. The Subscription object allows the user to access properties of the Subscription and call methods of the underlaying classes. NOTE: It is not recommended to use the methods of the Subscription objects. Such calls is handled in the calling thread and may block the user thread for possibly long timeout intervals.  
Subscribe(String,Object,Int32,DataBindFormat,Object,OnBGSubscribe)Available in the OPCDA.NET Professional Edition only.
Bind an OPC server item to an element of a control.The meaning of the index parameter depends on the control. In most cases it's the index of an array element, such as an Item[] element in a ListBox control.
The created Subscription object is returned to the user as an argument of the completion handler. The Subscription object allows the user to access properties of the Subscription and call methods of the underlaying classes. NOTE: It is not recommended to use the methods of the Subscription objects. Such calls is handled in the calling thread and may block the user thread for possibly long timeout intervals.  
Subscribe(String,Object,Int32,Int32,DataBindFormat,Object,OnBGSubscribe)Available in the OPCDA.NET Professional Edition only.
Bind an OPC server item to an element of a control.The meaning of the index parameter depends on the control. In most cases it's the index of an array element, such as an Item[] element in a ListBox control.
The created Subscription object is returned to the user as an argument of the completion handler. The Subscription object allows the user to access properties of the Subscription and call methods of the underlaying classes. NOTE: It is not recommended to use the methods of the Subscription objects. Such calls is handled in the calling thread and may block the user thread for possibly long timeout intervals.  
Subscribe(String,Object,String,DataBindFormat,Object,OnBGSubscribe)Available in the OPCDA.NET Professional Edition only.
Create subscription to the named property in any class.
The created Subscription object is returned to the user as an argument of the completion handler. The Subscription object allows the user to access properties of the Subscription and call methods of the underlaying classes. NOTE: It is not recommended to use the methods of the Subscription objects. Such calls is handled in the calling thread and may block the user thread for possibly long timeout intervals.  

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.