uaPLUS Reference
CreateDataItemNode(String,String,Type,Object,StatusCode,Byte) Method
See Also  Send Feedback
Advosol.uaPLUS Namespace > BaseNodeManager Class > CreateDataItemNode Method : CreateDataItemNode(String,String,Type,Object,StatusCode,Byte) Method

name
The name for the node ID, browse name and display name.
description
Optional vendor specific node description
dataType
The data type of the node value
initialValue
Optional initial value.
statusCode
Initial status code.
accessLevel
Access rights definition.

Glossary Item Box

A DataItemType node object is created with the specified name, data type and optional initial value.
Additional properties of the node object can be set by the application as required after the node is created.

Syntax

Visual Basic (Declaration) 
Protected Overloads Function CreateDataItemNode( _
   ByVal name As String, _
   ByVal description As String, _
   ByVal dataType As Type, _
   ByVal initialValue As Object, _
   ByVal statusCode As StatusCode, _
   ByVal accessLevel As Byte _
) As DataItemState
C# 
protected DataItemState CreateDataItemNode( 
   string name,
   string description,
   Type dataType,
   object initialValue,
   StatusCode statusCode,
   byte accessLevel
)

Parameters

name
The name for the node ID, browse name and display name.
description
Optional vendor specific node description
dataType
The data type of the node value
initialValue
Optional initial value.
statusCode
Initial status code.
accessLevel
Access rights definition.

Return Value

The created DataItemState object.

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.