LdapAttribute

The LdapAttribute class is used to hold a single attribute, and 0 or more of it's values.

constructor

Creates a new instance of this class. Creates a new instance of this class.


LdapAttribute(String key)

Parameters:

  • key:

Add (array of Byte)  virtual

Adds a new value to this attribute.

method Add(item: array of Byte)
func Add(_ item: Byte...)

Parameters:

  • item:

Parameters:

  • item:

Binary  virtual

If true, the values of this attribute are binary.

property Binary: Boolean read write;
Boolean Binary { get; set; }
var Binary: Boolean { get{} set{} }
Property Binary() As Boolean

Count  virtual

Contains the number of values associated with this attribute.

property Count: Int32 read;
var Count: Int32 { get{} }
ReadOnly Property Count() As Int32

GetBinary  virtual

Returns a binary value by index.

method GetBinary(index: Int32): array of Byte
Byte[] GetBinary(Int32 index)
func GetBinary(_ index: Int32) -> Byte...
Function GetBinary(index As Int32) As Byte()

Parameters:

  • index:

GetString  virtual

Returns a string value by index.

method GetString(index: Int32): String
String GetString(Int32 index)
func GetString(_ index: Int32) -> String
Function GetString(index As Int32) As String

Parameters:

  • index:

Key  virtual

Contains the name of the attribute.

property Key: String read write;
var Key: String { get{} set{} }

Remove (array of Byte)  virtual

Removes a value from the list.

method Remove(item: array of Byte)
func Remove(_ item: Byte...)
Sub Remove(item As Byte())

Parameters:

  • item:

method Remove(item: String)
func Remove(_ item: String)
Sub Remove(item As String)

Parameters:

  • item:

RemoveAt  virtual

Removes a value by its index.

method RemoveAt(index: Int32)
void RemoveAt(Int32 index)
func RemoveAt(_ index: Int32)
Sub RemoveAt(index As Int32)

Parameters:

  • index:

SetBinary  virtual

Sets/replaces a binary value by index.

method SetBinary(index: Int32; value: array of Byte)
void SetBinary(Int32 index, Byte[] value)
func SetBinary(_ index: Int32, _ value: Byte...)
Sub SetBinary(index As Int32, value As Byte())

Parameters:

  • index:
  • value: the new value

SetString  virtual

method SetString(index: Int32; value: String)
void SetString(Int32 index, String value)
func SetString(_ index: Int32, _ value: String)
Sub SetString(index As Int32, value As String)

Parameters:

  • index:
  • value:

SingleBinaryValue  virtual

Returns the first binary value, or nil when there is none. Throws an exception when the values are not binary.

property SingleBinaryValue: array of Byte read;
Byte[] SingleBinaryValue { get; }
var SingleBinaryValue: Byte... { get{} }
ReadOnly Property SingleBinaryValue() As Byte()

SingleStringValue  virtual

Returns the first string value, or nil when there is none. Throws an exception when the values are not strings.

property SingleStringValue: String read;
String SingleStringValue { get; }
var SingleStringValue: String { get{} }
ReadOnly Property SingleStringValue() As String

Binary  virtual

If true, the values of this attribute are binary.

property Binary: Boolean read write;
Boolean Binary { get; set; }
var Binary: Boolean { get{} set{} }
Property Binary() As Boolean

Count  virtual

Contains the number of values associated with this attribute.

property Count: Int32 read;
var Count: Int32 { get{} }
ReadOnly Property Count() As Int32

Key  virtual

Contains the name of the attribute.

property Key: String read write;
var Key: String { get{} set{} }

SingleBinaryValue  virtual

Returns the first binary value, or nil when there is none. Throws an exception when the values are not binary.

property SingleBinaryValue: array of Byte read;
Byte[] SingleBinaryValue { get; }
var SingleBinaryValue: Byte... { get{} }
ReadOnly Property SingleBinaryValue() As Byte()

SingleStringValue  virtual

Returns the first string value, or nil when there is none. Throws an exception when the values are not strings.

property SingleStringValue: String read;
String SingleStringValue { get; }
var SingleStringValue: String { get{} }
ReadOnly Property SingleStringValue() As String

constructor

Creates a new instance of this class. Creates a new instance of this class.


LdapAttribute(String key)

Parameters:

  • key:

Add (array of Byte)  virtual

Adds a new value to this attribute.

method Add(item: array of Byte)
func Add(_ item: Byte...)

Parameters:

  • item:

Parameters:

  • item:

GetBinary  virtual

Returns a binary value by index.

method GetBinary(index: Int32): array of Byte
Byte[] GetBinary(Int32 index)
func GetBinary(_ index: Int32) -> Byte...
Function GetBinary(index As Int32) As Byte()

Parameters:

  • index:

GetString  virtual

Returns a string value by index.

method GetString(index: Int32): String
String GetString(Int32 index)
func GetString(_ index: Int32) -> String
Function GetString(index As Int32) As String

Parameters:

  • index:

Remove (array of Byte)  virtual

Removes a value from the list.

method Remove(item: array of Byte)
func Remove(_ item: Byte...)
Sub Remove(item As Byte())

Parameters:

  • item:

method Remove(item: String)
func Remove(_ item: String)
Sub Remove(item As String)

Parameters:

  • item:

RemoveAt  virtual

Removes a value by its index.

method RemoveAt(index: Int32)
void RemoveAt(Int32 index)
func RemoveAt(_ index: Int32)
Sub RemoveAt(index As Int32)

Parameters:

  • index:

SetBinary  virtual

Sets/replaces a binary value by index.

method SetBinary(index: Int32; value: array of Byte)
void SetBinary(Int32 index, Byte[] value)
func SetBinary(_ index: Int32, _ value: Byte...)
Sub SetBinary(index As Int32, value As Byte())

Parameters:

  • index:
  • value: the new value

SetString  virtual

method SetString(index: Int32; value: String)
void SetString(Int32 index, String value)
func SetString(_ index: Int32, _ value: String)
Sub SetString(index As Int32, value As String)

Parameters:

  • index:
  • value: