LdapAttribute

Overview

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

Location

 

constructor

 

constructor(key: String)

 

LdapAttribute(String key)

 

Sub New(key As String)

Parameters:

  • key:

Add (array of Byte)

Adds a new value to this attribute.

 

method Add(item: array of Byte)

 

void Add(Byte[] item)

 

Sub Add(item As Byte())

Parameters:

  • item:

Add (String)

 

method Add(item: String)

 

void Add(String item)

 

Sub Add(item As String)

Parameters:

  • item:

Binary

If true, the values of this attribute are binary.

 

property Binary: Boolean read write;

 

Boolean Binary { get; set; }

 

Property Binary() As Boolean

Count

Contains the number of values associated with this attribute.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

ReadOnly Property Count() As Int32

GetBinary

Returns a binary value by index.

 

method GetBinary(index: Int32): array of Byte

 

Byte[] GetBinary(Int32 index)

 

Function GetBinary(index As Int32) As Byte()

Parameters:

  • index:

GetString

Returns a string value by index.

 

method GetString(index: Int32): String

 

String GetString(Int32 index)

 

Function GetString(index As Int32) As String

Parameters:

  • index:

Key

Contains the name of the attribute.

 

property Key: String read write;

 

String Key { get; set; }

 

Property Key() As String

Remove (array of Byte)

Removes a value from the list.

 

method Remove(item: array of Byte)

 

void Remove(Byte[] item)

 

Sub Remove(item As Byte())

Parameters:

  • item:

Remove (String)

 

method Remove(item: String)

 

void Remove(String item)

 

Sub Remove(item As String)

Parameters:

  • item:

RemoveAt

Removes a value by its index.

 

method RemoveAt(index: Int32)

 

void RemoveAt(Int32 index)

 

Sub RemoveAt(index As Int32)

Parameters:

  • index:

SetBinary

Sets/replaces a binary value by index.

 

method SetBinary(index: Int32; value: array of Byte)

 

void SetBinary(Int32 index, Byte[] value)

 

Sub SetBinary(index As Int32, value As Byte())

Parameters:

  • index:
  • value: the new value

SetString

 

method SetString(index: Int32; value: String)

 

void SetString(Int32 index, String value)

 

Sub SetString(index As Int32, value As String)

Parameters:

  • index:
  • value:

SingleBinaryValue

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; }

 

ReadOnly Property SingleBinaryValue() As Byte()

SingleStringValue

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; }

 

ReadOnly Property SingleStringValue() As String

 

Binary

If true, the values of this attribute are binary.

 

property Binary: Boolean read write;

 

Boolean Binary { get; set; }

 

Property Binary() As Boolean

Count

Contains the number of values associated with this attribute.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

ReadOnly Property Count() As Int32

Key

Contains the name of the attribute.

 

property Key: String read write;

 

String Key { get; set; }

 

Property Key() As String

SingleBinaryValue

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; }

 

ReadOnly Property SingleBinaryValue() As Byte()

SingleStringValue

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; }

 

ReadOnly Property SingleStringValue() As String

 

constructor

 

constructor(key: String)

 

LdapAttribute(String key)

 

Sub New(key As String)

Parameters:

  • key:

Add (array of Byte)

Adds a new value to this attribute.

 

method Add(item: array of Byte)

 

void Add(Byte[] item)

 

Sub Add(item As Byte())

Parameters:

  • item:

Add (String)

 

method Add(item: String)

 

void Add(String item)

 

Sub Add(item As String)

Parameters:

  • item:

GetBinary

Returns a binary value by index.

 

method GetBinary(index: Int32): array of Byte

 

Byte[] GetBinary(Int32 index)

 

Function GetBinary(index As Int32) As Byte()

Parameters:

  • index:

GetString

Returns a string value by index.

 

method GetString(index: Int32): String

 

String GetString(Int32 index)

 

Function GetString(index As Int32) As String

Parameters:

  • index:

Remove (array of Byte)

Removes a value from the list.

 

method Remove(item: array of Byte)

 

void Remove(Byte[] item)

 

Sub Remove(item As Byte())

Parameters:

  • item:

Remove (String)

 

method Remove(item: String)

 

void Remove(String item)

 

Sub Remove(item As String)

Parameters:

  • item:

RemoveAt

Removes a value by its index.

 

method RemoveAt(index: Int32)

 

void RemoveAt(Int32 index)

 

Sub RemoveAt(index As Int32)

Parameters:

  • index:

SetBinary

Sets/replaces a binary value by index.

 

method SetBinary(index: Int32; value: array of Byte)

 

void SetBinary(Int32 index, Byte[] value)

 

Sub SetBinary(index As Int32, value As Byte())

Parameters:

  • index:
  • value: the new value

SetString

 

method SetString(index: Int32; value: String)

 

void SetString(Int32 index, String value)

 

Sub SetString(index As Int32, value As String)

Parameters:

  • index:
  • value: