getSubset() public method

Creates a new attribute set containing only the attributes that have the specified subtypes. For example, suppose an attribute set contains the following attributes:
  • cn
  • cn;lang-ja
  • sn;phonetic;lang-ja
  • sn;lang-us
Calling the getSubset method and passing lang-ja as the argument, the method returns an attribute set containing the following attributes:
  • cn;lang-ja
  • sn;phonetic;lang-ja
public getSubset ( System subtype ) : LdapAttributeSet
subtype System Semi-colon delimited list of subtypes to include. For /// example: ///
    ///
  • "lang-ja" specifies only Japanese language subtypes
  • ///
  • "binary" specifies only binary subtypes
  • ///
  • "binary;lang-ja" specifies only Japanese language subtypes /// which also are binary
  • ///
/// /// Note: Novell eDirectory does not currently support language subtypes. /// It does support the "binary" subtype. /// ///
return LdapAttributeSet
示例#1
0
 /// <summary> Returns an attribute set from the entry, consisting of only those
 /// attributes matching the specified subtypes.
 ///
 /// The getAttributeSet method can be used to extract only
 /// a particular language variant subtype of each attribute,
 /// if it exists. The "subtype" may be, for example, "lang-ja", "binary",
 /// or "lang-ja;phonetic". If more than one subtype is specified, separated
 /// with a semicolon, only those attributes with all of the named
 /// subtypes will be returned. The LdapAttributeSet returned may be
 /// empty if there are no matching attributes in the entry.
 ///
 /// </summary>
 /// <param name="subtype"> One or more subtype specification(s), separated
 /// with semicolons. The "lang-ja" and
 /// "lang-en;phonetic" are valid subtype
 /// specifications.
 ///
 /// </param>
 /// <returns> An attribute set from the entry with the attributes that
 /// match the specified subtypes or an empty set if no attributes
 /// match.
 /// </returns>
 public virtual LdapAttributeSet getAttributeSet(System.String subtype)
 {
     return(attrs.getSubset(subtype));
 }