---
title: "AXUIElementCopyMultipleAttributeValues(_:_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1462051-axuielementcopymultipleattribute
---

# AXUIElementCopyMultipleAttributeValues(_:_:_:_:)

Returns the values of multiple attributes in the accessibility object.

## Declaration

```swift
func AXUIElementCopyMultipleAttributeValues(_ element: AXUIElement, _ attributes: CFArray, _ options: AXCopyMultipleAttributeOptions, _ values: UnsafeMutablePointer<CFArray?>) -> AXError
```

## Parameters

- `element`: The AXUIElementRef representing the accessibility object.
- `attributes`: An array of attribute names.
- `options`: A value that tells AXUIElementCopyMultipleAttributeValues how to handle errors.
- `values`: On return, an array in which each position contains the value of the attribute that is in the corresponding position in the passed-in attributes array (or CFNull). If options = 0, the values array can contain an AXValueRef of type kAXValueAXErrorType in the corresponding position. If options = kAXCopyMultipleAttributeOptionStopOnError, this function will return immediately when it gets an error.

## Return Value

Return Value If unsuccessful, AXUIElementCopyMultipleAttributeValues may return one of the following error codes, among others:

## Discussion

Discussion If the specified AXUIElementRef does not support an attribute passed in the attributes array, the returned array can contain an error or CFNull at the corresponding position.

## See Also

### Miscellaneous

- [AXIsProcessTrusted()](applicationservices/1460720-axisprocesstrusted.md)
- [AXIsProcessTrustedWithOptions(_:)](applicationservices/1459186-axisprocesstrustedwithoptions.md)
- [AXUIElementCopyActionDescription(_:_:_:)](applicationservices/1462075-axuielementcopyactiondescription.md)
- [AXUIElementCopyActionNames(_:_:)](applicationservices/1462053-axuielementcopyactionnames.md)
- [AXUIElementCopyAttributeNames(_:_:)](applicationservices/1459475-axuielementcopyattributenames.md)
- [AXUIElementCopyAttributeValue(_:_:_:)](applicationservices/1462085-axuielementcopyattributevalue.md)
- [AXUIElementCopyAttributeValues(_:_:_:_:_:)](applicationservices/1462060-axuielementcopyattributevalues.md)
- [AXUIElementCopyElementAtPosition(_:_:_:_:)](applicationservices/1462077-axuielementcopyelementatposition.md)
- [AXUIElementCopyParameterizedAttributeNames(_:_:)](applicationservices/1458783-axuielementcopyparameterizedattr.md)
- [AXUIElementCopyParameterizedAttributeValue(_:_:_:_:)](applicationservices/1461203-axuielementcopyparameterizedattr.md)
- [AXUIElementCreateApplication(_:)](applicationservices/1459374-axuielementcreateapplication.md)
- [AXUIElementCreateSystemWide()](applicationservices/1462095-axuielementcreatesystemwide.md)
- [AXUIElementGetAttributeValueCount(_:_:_:)](applicationservices/1459066-axuielementgetattributevaluecoun.md)
- [AXUIElementGetPid(_:_:)](applicationservices/1460337-axuielementgetpid.md)
- [AXUIElementGetTypeID()](applicationservices/1460085-axuielementgettypeid.md)
- [AXUIElementIsAttributeSettable(_:_:_:)](applicationservices/1459972-axuielementisattributesettable.md)
- [AXUIElementPerformAction(_:_:)](applicationservices/1462091-axuielementperformaction.md)
- [AXUIElementSetAttributeValue(_:_:_:)](applicationservices/1460434-axuielementsetattributevalue.md)
- [AXUIElementSetMessagingTimeout(_:_:)](applicationservices/1459345-axuielementsetmessagingtimeout.md)
