OPCDA.NET-UA
Write Method
See Also  Send Feedback
OpcDaNetUaOption.Net4 Assembly > UA_Wrapper Namespace > Server Class : Write Method

items

Glossary Item Box

Writes a group of items.
The purpose of this OPC V3 method is to provide an extremely easy way for simple applications to write OPC data. Programmers should be aware that in most servers, the design of the Group based OPC interfaces will provide much better performance than this method. In terms of performance, the user of this method should assume that it will behave as if he were to create a group, add the items, perform a single Write or write and then delete the group.

Syntax

Visual Basic (Declaration) 
Public Function Write( _
   ByVal items() As OPCDA.NET.ItemValue _
) As Integer
C# 
public int Write( 
   OPCDA.NET.ItemValue[] items
)

Parameters

items

Return Value

Error/success code. Item specific errors are returned in the ItemValues array.

Remarks

In case of errors an OPCException is thrown.
Error accessing individual items are reported in the returned ItemValue object.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.7.2

See Also

Copyright © 2020 Advosol Inc. All Rights Reserved.