Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
LDAP.SearchResult.AttributeValueCount
Queries the number of values for an attribute.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
LDAP | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "LDAP.SearchResult.AttributeValueCount"; LDAPRef; EntryIndex; AttributeIndex ) More
Parameters
Parameter | Description | Example |
---|---|---|
LDAPRef | The reference number for the LDAP connection. | $ldap |
EntryIndex | The index in the search results. Range from 0 to LDAP.SearchResult.EntryCount-1. |
$index |
AttributeIndex | The index of the attibute. From 0 to LDAP.SearchResult.AttributeCount-1. |
0 |
Result
Returns number or error.
Description
Queries the number of values for an attribute.If the plugin has no value, this is zero. If the attribute is a list and has more than one entry, the result is > 1.
Examples
Query attribute values as list:
Set Variable [$AttributeValues; Value:MBS("LDAP.SearchResult.AttributeValues"; $ldap; $EntryIndex; $AttributeIndex; 1)]
See also
- LDAP.Search
- LDAP.SearchResult.AttributeCount
- LDAP.SearchResult.AttributeName
- LDAP.SearchResult.AttributeNames
- LDAP.SearchResult.AttributeValue
- LDAP.SearchResult.AttributeValues
- LDAP.SearchResult.AttributeValuesByName
This function is free to use.
Created 15th December 2015, last changed 16th December 2015
LDAP.SearchResult.AttributeValue - LDAP.SearchResult.AttributeValues