-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathOpcBrowseElement.cs
More file actions
50 lines (42 loc) · 1.19 KB
/
OpcBrowseElement.cs
File metadata and controls
50 lines (42 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/
using Opc.Da;
namespace BootstrapBlazor.OpcDa;
/// <summary>
/// 对 OpcDataServer BrowseElement 的封装类
/// </summary>
public class OpcBrowseElement
{
/// <summary>
/// 获得/设置 节点名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 获得/设置 Item 名称
/// </summary>
public string ItemName { get; set; }
/// <summary>
/// 获得/设置 是否是数据项
/// </summary>
public bool IsItem { get; set; }
/// <summary>
/// 获得/设置 是否有子节点
/// </summary>
public bool HasChildren { get; set; }
/// <summary>
/// 构造函数
/// </summary>
public OpcBrowseElement()
{
Name = "";
ItemName = "";
}
internal OpcBrowseElement(BrowseElement element)
{
Name = element.Name;
ItemName = element.ItemName;
IsItem = element.IsItem;
HasChildren = element.HasChildren;
}
}