uaPLUS Reference
WriteItems(Int32,DeviceItemValue[],Int32[]) Method
See Also  Send Feedback
NSPlugin Namespace > AppPlugin Class > WriteItems Method : WriteItems(Int32,DeviceItemValue[],Int32[]) Method

instanceHandle
Handle the identifies the calling client application. The method GetServerInstancesInfo can be used to get name information for this handle.
values
object with handle, value, quality, timestamp
errors
array with S_OK or error codes on return.

Glossary Item Box

This method is called when a client executes a 'write' server call. The items specified in the appHandles array need to be written to the device. The generic server updates the cache for these items.

Syntax

Visual Basic (Declaration) 
Public Overloads Shadows Function WriteItems( _
   ByVal instanceHandle As Integer, _
   ByVal values() As DeviceItemValue, _
   ByRef errors As Integer() _
) As Integer
C# 
public new int WriteItems( 
   int instanceHandle,
   DeviceItemValue[] values,
   out int[] errors
)

Parameters

instanceHandle
Handle the identifies the calling client application. The method GetServerInstancesInfo can be used to get name information for this handle.
values
object with handle, value, quality, timestamp
errors
array with S_OK or error codes on return.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

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