OPCDA.NET Reference Manual
Write(ItemDef,Object,Int32) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > RefreshGroup Class > Write Method : Write(ItemDef,Object,Int32) Method

idef
IN: ItemDef item definition object
val
IN: value to write
TransactionId
This value is returned in the WriteComplete callback to allow the execution information to be associated with the Write call.

Glossary Item Box

Write a new value to the item specified by the ItemDef object. An asynchronous OPC write call is executed. The WriteComplete callback returns the indication of the successful execution or error information if the write failed.
This simplified Write method overload does not return a cancel ID and therefore does not allow the call to be cancelled.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Write( _
   ByVal idef As ItemDef, _
   ByVal val As Object, _
   ByVal TransactionId As Integer _
) As Integer
C# 
public int Write( 
   ItemDef idef,
   object val,
   int TransactionId
)

Parameters

idef
IN: ItemDef item definition object
val
IN: value to write
TransactionId
This value is returned in the WriteComplete callback to allow the execution information to be associated with the Write call.

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.