Opc.Ua.Com.Client.HdaItemState.HdaItemState C# (CSharp) Method

HdaItemState() public method

Initializes a new instance of the DaItemState class.
public HdaItemState ( string itemId, string name, ushort namespaceIndex ) : System
itemId string The item id.
name string The name.
namespaceIndex ushort Index of the namespace.
return System
        public HdaItemState(
            string itemId,
            string name,
            ushort namespaceIndex) 
        : 
            base(null)
        {
            m_itemId = itemId;

            if (String.IsNullOrEmpty(name))
            {
                name = itemId;
            }

            this.NodeId = HdaModelUtils.ConstructIdForHdaItem(itemId, namespaceIndex);
            this.BrowseName = new QualifiedName(name, namespaceIndex);
            this.DisplayName = new LocalizedText(name);
            this.TypeDefinitionId = Opc.Ua.VariableTypeIds.DataItemType;
            this.Description = null;
            this.WriteMask = 0;
            this.UserWriteMask = 0;
            this.DataType = DataTypeIds.BaseDataType;
            this.ValueRank = ValueRanks.Any;
            this.Historizing = false;
            this.MinimumSamplingInterval = MinimumSamplingIntervals.Indeterminate;
            this.AccessLevel = AccessLevels.HistoryRead;
            this.UserAccessLevel = AccessLevels.HistoryRead;
        }
        #endregion