OPCDA.NET Reference Manual
OPCItemDef Constructor(String,Boolean,Int32,Type)
See Also  Send Feedback
OpcNetBase.Net4 Assembly > OPCDA.NET Namespace > OPCItemDef Class > OPCItemDef Constructor : OPCItemDef Constructor(String,Boolean,Int32,Type)

id
A string that uniquely identifies the OPC data item. See the Item ID discussion and the AddItems function for specific information about the contents of this field.
activ
This Boolean value affects the behavior various methods.
hclt
The handle the client wishes to associate with the item. See the OPCHANDLE for more specific information about the contents of this field.
st
The data type requested by the client.

Glossary Item Box

Creates OPCItemDef object with the usually used elements. The data type is specified as a .Net data type.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal id As String, _
   ByVal activ As Boolean, _
   ByVal hclt As Integer, _
   ByVal st As Type _
)
C# 
public OPCItemDef( 
   string id,
   bool activ,
   int hclt,
   Type st
)

Parameters

id
A string that uniquely identifies the OPC data item. See the Item ID discussion and the AddItems function for specific information about the contents of this field.
activ
This Boolean value affects the behavior various methods.
hclt
The handle the client wishes to associate with the item. See the OPCHANDLE for more specific information about the contents of this field.
st
The data type requested by the client.

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.