/// <summary> /// 设置字典值 /// </summary> /// <param name="id">对象ID</param> /// <param name="dictionary">字典名</param> /// <param name="key">键</param> /// <param name="value">值</param> public static void SetValue(ObjectId id, string dictionary, string key, string value) { CustomDictionary.SetEntry(getDictionaryId(id, dictionary), key, value); }
/// <summary> /// 获取字典的所有键名 /// </summary> /// <param name="id">对象ID</param> /// <param name="dictionary">字典名</param> /// <returns>键名列表</returns> public static IEnumerable <string> GetEntryNames(ObjectId id, string dictionary) { return(CustomDictionary.GetEntryNames(getDictionaryId(id, dictionary))); }
/// <summary> /// 获取字典值 /// </summary> /// <param name="id">对象ID</param> /// <param name="dictionary">字典名</param> /// <param name="key">键</param> /// <returns>值</returns> public static string GetValue(ObjectId id, string dictionary, string key) { return(CustomDictionary.GetEntry(getDictionaryId(id, dictionary), key)); }