ToString() public method

Returns a string representation of this LdapAttributeSet
public ToString ( ) : System.String
return System.String
示例#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());
 }
示例#2
0
        /// <summary> Returns a string representation of this LdapEntry
        ///
        /// </summary>
        /// <returns> a string representation of this LdapEntry
        /// </returns>
        public override string ToString()
        {
            StringBuilder result = new StringBuilder("LdapEntry: ");

            if (dn != null)
            {
                result.Append(dn + "; ");
            }
            if (attrs != null)
            {
                result.Append(attrs.ToString());
            }
            return(result.ToString());
        }