Novell.Directory.Ldap.LdapAttributeSet.ToString C# (CSharp) Method

ToString() public method

Returns a string representation of this LdapAttributeSet
public ToString ( ) : System.String
return System.String
        public override System.String ToString()
        {
            System.Text.StringBuilder retValue = new System.Text.StringBuilder("LdapAttributeSet: ");
            System.Collections.IEnumerator attrs = GetEnumerator();
            bool first = true;
            while (attrs.MoveNext())
            {
                if (!first)
                {
                    retValue.Append(" ");
                }
                first = false;
                LdapAttribute attr = (LdapAttribute) attrs.Current;
                retValue.Append(attr.ToString());
            }
            return retValue.ToString();
        }

Usage Example

示例#1
0
 /// <summary> Returns a string representation of this LdapEntry
 ///
 /// </summary>
 /// <returns> a string representation of this LdapEntry
 /// </returns>
 public override System.String ToString()
 {
     System.Text.StringBuilder result = new System.Text.StringBuilder("LdapEntry: ");
     if ((System.Object)dn != null)
     {
         result.Append(dn + "; ");
     }
     if (attrs != null)
     {
         result.Append(attrs.ToString());
     }
     return(result.ToString());
 }
All Usage Examples Of Novell.Directory.Ldap.LdapAttributeSet::ToString