You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
700 B
C#
31 lines
700 B
C#
namespace OPCDA.NET
|
|
{
|
|
using System;
|
|
|
|
public class BrowseElement
|
|
{
|
|
public int Error = 0;
|
|
public bool HasChildren = false;
|
|
public bool IsItem = false;
|
|
public string ItemID = null;
|
|
public string Name = null;
|
|
public Property[] Properties = null;
|
|
|
|
public Property GetProperty(int id)
|
|
{
|
|
if (this.Properties != null)
|
|
{
|
|
foreach (Property property in this.Properties)
|
|
{
|
|
if (property.ID == id)
|
|
{
|
|
return property;
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|