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

items
An array of ItemValue objects with the value, quality and timestamp for each item.

Glossary Item Box

OPCDA V3. 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 ItemValue _
) As ItemValue()
C# 
public ItemValue[] Write( 
   ItemValue[] items
)

Parameters

items
An array of ItemValue objects with the value, quality and timestamp for each item.

Return Value

Array with error information for each item.

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 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.