LdapAttribute
Overview
The LdapAttribute class is used to hold a single attribute, and 0 or more of it's values.
Location
- Reference: RemObjects.SDK.dll
- Namespace: RemObjects.SDK.Ldap
- Platforms: .NET Core, .NET Framework, .NET Standard
constructor
constructor(key: String)
LdapAttribute(String key)
init(_ key: String)
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)
func Add(_ item: Byte...)
Sub Add(item As Byte())
Parameters:
- item:
Add (String)
method Add(item: String)
void Add(String item)
func Add(_ item: String)
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; }
var Binary: Boolean { get{} set{} }
Property Binary() As Boolean
Count
Contains the number of values associated with this attribute.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
ReadOnly Property Count() As Int32
GetBinary
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
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
Contains the name of the attribute.
property Key: String read write;
String Key { get; set; }
var Key: String { 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)
func Remove(_ item: Byte...)
Sub Remove(item As Byte())
Parameters:
- item:
Remove (String)
method Remove(item: String)
void Remove(String item)
func Remove(_ item: String)
Sub Remove(item As String)
Parameters:
- item:
RemoveAt
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
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
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
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
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
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
Contains the number of values associated with this attribute.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
ReadOnly Property Count() As Int32
Key
Contains the name of the attribute.
property Key: String read write;
String Key { get; set; }
var Key: String { 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; }
var SingleBinaryValue: Byte... { 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; }
var SingleStringValue: String { get{} }
ReadOnly Property SingleStringValue() As String
constructor
constructor(key: String)
LdapAttribute(String key)
init(_ key: String)
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)
func Add(_ item: Byte...)
Sub Add(item As Byte())
Parameters:
- item:
Add (String)
method Add(item: String)
void Add(String item)
func Add(_ item: String)
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)
func GetBinary(_ index: Int32) -> Byte...
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)
func GetString(_ index: Int32) -> String
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)
func Remove(_ item: Byte...)
Sub Remove(item As Byte())
Parameters:
- item:
Remove (String)
method Remove(item: String)
void Remove(String item)
func Remove(_ item: String)
Sub Remove(item As String)
Parameters:
- item:
RemoveAt
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
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
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: