LDAP.SearchResult.AttributeNames
--------------------------------

Queries all names of attributes for an entry as a list.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [LDAP](component_LDAP.md) | [6.0](newinversion60.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "LDAP.SearchResult.AttributeNames"; LDAPRef; EntryIndex { ; NoReturnEnding } ) 

**MBS**( **"LDAP.SearchResult.AttributeNames";** /\* Queries all names of attributes for an entry as a list. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection.e.g. $ldap \*/   
**$EntryIndex**; /\* The index in the search results.   
Range from 0 to LDAP.SearchResult.EntryCount-1.e.g. $index \*/   
**$NoReturnEnding**) /\* Optional; Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| 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 |  |
| NoReturnEnding | Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists. | 1 | Optional |

### Result

Returns list or error.

### Description

Queries all names of attributes for an entry as a list.  
### Examples

Query names of attributes as list:

 MBS ( "LDAP.SearchResult.AttributeNames"; $ldap ; $EntryIndex )  
### See also

- [LDAP.Search](LDAPSearch.md)
- [LDAP.SearchResult.AttributeCount](LDAPSearchResultAttributeCount.md)
- [LDAP.SearchResult.AttributeName](LDAPSearchResultAttributeName.md)
- [LDAP.SearchResult.AttributeValue](LDAPSearchResultAttributeValue.md)
- [LDAP.SearchResult.AttributeValueCount](LDAPSearchResultAttributeValueCount.md)
- [LDAP.SearchResult.AttributeValues](LDAPSearchResultAttributeValues.md)
- [LDAP.SearchResult.AttributeValuesByName](LDAPSearchResultAttributeValuesByName.md)

This function is free to use.

Created 15th December 2015 , last changed 16th December 2015

  
[LDAP.SearchResult.AttributeName](LDAPSearchResultAttributeName.md) - [LDAP.SearchResult.AttributeValue](LDAPSearchResultAttributeValue.md)

[HTML Version](LDAPSearchResultAttributeNames.shtml)