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

Glossary Item Box

Write a new value to the specified item. 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.

Overload List

OverloadDescription
Write(String,Object,Int32)Write a new value to the specified item. 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.  
Write(String,Object,Int32,Int32)Write a new value to the specified item. An asynchronous OPC write call is executed. The WriteComplete callback returns the indication of the successful execution or error information if the write failed.
The returned cancel ID can be used to cancel the call execution.  
Write(ItemDef,Object,Int32)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.  
Write(ItemDef,Object,Int32,Int32)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.
The returned cancel ID can be used to cancel the call execution.  
Write(String,Object)Write a new value to the specifed item.
A synchronous OPC server write call is executed. (Inherited from OPCDA.NET.SyncIOGroup)
Write(ItemDef,Object)Write a value value to the item specified with the ItemDef object.
The ItemDef object was created in a previous Write, Read or Add call. This method overload is a bit more efficient because no ItemID search as to be done. Only in a SyncIOGroup with many items it could be a significant performance gain.
A synchronous OpcGroup write call is executed. (Inherited from OPCDA.NET.SyncIOGroup)

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.