LdapAttributes

Overview

The LdapAttributes class is a list container that holds a list of attributes associated with an LdapObject. It can be accessed by index or by attribute name (ldap attribute description).

Location

Properties


Item

Accesses an item by index. Use the Count property to access the item limit.

 

property Item[key: String]: LdapAttribute read;

 

LdapAttribute Item[String key] { get; }

 

ReadOnly Property Item(key As String) As LdapAttribute

Instance Methods


constructor

Creates a new instance of this class.

 

constructor

 

LdapAttributes()

 

Sub New()

constructor (Int32)

 

constructor(capacity: Int32)

 

LdapAttributes(Int32 capacity)

 

Sub New(capacity As Int32)

Parameters:

  • capacity:

constructor (IEnumerable<LdapAttribute>)

 

constructor(collection: IEnumerable<LdapAttribute>)

 

LdapAttributes(IEnumerable<LdapAttribute> collection)

 

Sub New(collection As IEnumerable<LdapAttribute>)

Parameters:

  • collection:

GetStringAttribute

Returns the string representation of an attribute with a single value. For binary values, the result is converted to hexadecimal. This method will throw an exception when there are multiple records, or nil when there is no record.

 

method GetStringAttribute(key: String): String

 

String GetStringAttribute(String key)

 

Function GetStringAttribute(key As String) As String

Parameters:

  • key: the attribute na,e