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

arrHSrv
IN: Array with item server handles
activate
IN: new activ state
arrErr

Glossary Item Box

Sets one or more items in a group to active or inactive. This controls whether or not valid data can be obtained from Read CACHE for those items and whether or not they are included in the IAdvise subscription to the group. ( IOPCItemMgt::SetActiveState )

Syntax

Visual Basic (Declaration) 
Public Function SetActiveState( _
   ByVal arrHSrv() As Integer, _
   ByVal activate As Boolean, _
   ByRef arrErr As Integer() _
) As Integer
C# 
public int SetActiveState( 
   int[] arrHSrv,
   bool activate,
   out int[] arrErr
)

Parameters

arrHSrv
IN: Array with item server handles
activate
IN: new activ state
arrErr

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.