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

itemIDs
An array with ItemID definitions for which the caller wants to read the list of properties.
returnValues
Server must return the property values in addition to the property names.
propertyIDs
Array with the ID's of the item properties to be read. The property IDs are as defined in the OPC specification and as returned in the QueryAvailableProperies method.
If NULL then all available properties are returned.

Glossary Item Box

Returns the properties for a set of items. ( OPCDA V3, IOPCBrowse::GetProperties )
In the OPCDA.NET Professional Edition this method is available also for OPCDA V2 servers. With OPCDA V2 servers the method is emulated by calling the available OPCDA V2 item properties methods.

An OPCException is thrown if the OPC Server returns an error.

Syntax

Visual Basic (Declaration) 
Public Function GetProperties( _
   ByVal itemIDs() As String, _
   ByVal returnValues As Boolean, _
   ByVal propertyIDs() As Integer _
) As ItemProperties()
C# 
public ItemProperties[] GetProperties( 
   string[] itemIDs,
   bool returnValues,
   int[] propertyIDs
)

Parameters

itemIDs
An array with ItemID definitions for which the caller wants to read the list of properties.
returnValues
Server must return the property values in addition to the property names.
propertyIDs
Array with the ID's of the item properties to be read. The property IDs are as defined in the OPC specification and as returned in the QueryAvailableProperies method.
If NULL then all available properties are returned.

Return Value

Array of ItemProperties returned by the Server.

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.