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

sourceMode
IN: Data source CACHE or DEVICE. If the DEVICE, then all active items in the CACHE are refreshed from the device BEFORE the callback
transactionID
IN: The Client generated transaction ID. This is included in the 'completion' information provided to the OnDataChange.
cancelID
Place to return a Server generated ID to be used in case the operation needs to be canceled.

Glossary Item Box

Force a callback to IOPCDataCallback::OnDataChange for all active items in the group (whether they have changed or not). Inactive items are not included in the callback. ( IOPCAsyncIO2::Refresh2 )

Syntax

Visual Basic (Declaration) 
Public Function Refresh2( _
   ByVal sourceMode As OPCDATASOURCE, _
   ByVal transactionID As Integer, _
   ByRef cancelID As Integer _
) As Integer

Parameters

sourceMode
IN: Data source CACHE or DEVICE. If the DEVICE, then all active items in the CACHE are refreshed from the device BEFORE the callback
transactionID
IN: The Client generated transaction ID. This is included in the 'completion' information provided to the OnDataChange.
cancelID
Place to return a Server generated ID to be used in case the operation needs to be canceled.

Return Value

HRESULT success/error code

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.