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.
|
|
|
|
namespace OPCDA.NET
|
|
|
|
|
{
|
|
|
|
|
using OPC;
|
|
|
|
|
using OPCDA.Interface;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class OPCItemProperty
|
|
|
|
|
{
|
|
|
|
|
public VarEnum DataType;
|
|
|
|
|
public string Description;
|
|
|
|
|
public int PropertyID;
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return string.Concat(new object[] { "ID:", this.PropertyID, " '", this.Description, "' T:", DUMMY_VARIANT.VarEnumToString(this.DataType) });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Type DataTypeS
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return types.ConvertToSystemType(this.DataType);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.DataType = types.ConvertToVarType(value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|