/// <summary> /// 设置用户额外属性 /// </summary> /// <param name="name"></param> /// <param name="value"></param> public void AddExtAttr(string name, string value) { if (extattr == null) { extattr = new UserExtensionAttribute(); } extattr.Add(name, value); }
/// <summary> /// 设置额外属性 /// </summary> /// <param name="items"></param> public void SetExtAttr(params UserExtensionAttributeItem[] items) { if (extattr == null) { extattr = new UserExtensionAttribute(); } foreach (var item in items) { extattr.Add(item); } }
/// <summary> /// 设置用户额外属性 /// </summary> /// <param name="attrs"></param> public void AddExtAttr(NameValueCollection attrs) { if (extattr == null) { extattr = new UserExtensionAttribute(); } foreach (string key in attrs.Keys) { extattr.Add(key, attrs[key]); } }
//private IEnumerable<int> deptIds; #endregion #region Ctor /// <summary> /// /// </summary> public CreateUserRequest() { department = new List <int>(); extattr = new UserExtensionAttribute(); }