/// <summary> Constructs an attribute with no values. /// /// </summary> /// <param name="attrName">Name of the attribute. /// /// @throws IllegalArgumentException if attrName is null /// </param> public LdapAttribute(string attrName) { if (attrName == null) { throw new ArgumentException("Attribute name cannot be null"); } this.name = attrName; this.baseName = LdapAttribute.getBaseName(attrName); this.subTypes = LdapAttribute.getSubtypes(attrName); }
/// <summary> Constructs an attribute with no values. /// /// </summary> /// <param name="attrName">Name of the attribute. /// /// @throws IllegalArgumentException if attrName is null /// </param> public LdapAttribute(System.String attrName) { if ((System.Object)attrName == null) { throw new System.ArgumentException("Attribute name cannot be null"); } this.name = attrName; this.baseName = LdapAttribute.getBaseName(attrName); this.subTypes = LdapAttribute.getSubtypes(attrName); return; }