getBaseName() публичный Метод

Returns the base name of the attribute. For example, if the attribute name is cn;lang-ja;phonetic, this method returns cn.
public getBaseName ( ) : System.String
Результат System.String
Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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;
 }