using TDMS.Common; namespace TDMS { /// /// 自定义标量属性的操作接口 /// public interface ITDMSLevelPropertyOperation { /// /// 增加属性(如果属性已经存在,则更新属性值) /// /// 属性名 /// 属性值 void CreateOrUpdateProperty(string propertyName, T propertyValue); /// /// 属性是否存在 /// /// 属性名 bool PropertyExists(string propertyName); /// /// 获取所有的属性名 /// /// 当前节点保存的所有属性的名称集合 string[] GetPropertyNames(); /// /// 获取属性 /// /// 属性名 /// 输出:属性值 /// 属性值获取是否成功,如成功,元数据包含属性值 bool TryGetProperty(string propertyName, out T propertyValue); } }