예제 #1
0
파일: LdapEntry.cs 프로젝트: pha3z/swan
 /// <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 LdapAttributeSet GetAttributeSet(string subtype) => _attrs.GetSubset(subtype);
예제 #2
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(string subtype) => Attrs.GetSubset(subtype);