Opc.Ua.Com.Client.HdaModelUtils.ConstructIdForHdaItem C# (CSharp) Method

ConstructIdForHdaItem() public static method

Constructs the node id for an item.
public static ConstructIdForHdaItem ( string itemId, ushort namespaceIndex ) : Opc.Ua.NodeId
itemId string The item id.
namespaceIndex ushort Index of the namespace.
return Opc.Ua.NodeId
        public static NodeId ConstructIdForHdaItem(string itemId, ushort namespaceIndex)
        {
            ParsedNodeId parsedNodeId = new ParsedNodeId();

            parsedNodeId.RootId = itemId;
            parsedNodeId.NamespaceIndex = namespaceIndex;
            parsedNodeId.RootType = HdaItem;

            return parsedNodeId.Construct();
        }

Usage Example

コード例 #1
0
ファイル: HdaItemState.cs プロジェクト: neobox3000/UA-.NET
        /// <summary>
        /// Initializes a new instance of the <see cref="DaItemState"/> class.
        /// </summary>
        /// <param name="itemId">The item id.</param>
        /// <param name="name">The name.</param>
        /// <param name="namespaceIndex">Index of the namespace.</param>
        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;
        }
All Usage Examples Of Opc.Ua.Com.Client.HdaModelUtils::ConstructIdForHdaItem