---
title: attributes
framework: intents
role: symbol
role_heading: Instance Property
path: intents/insearchformessagesintent/attributes
---

# attributes

The attributes that must be present on a message to yield a match.

## Declaration

```swift
var attributes: INMessageAttributeOptions { get }
```

## Discussion

Discussion Use this property to limit the scope of the search to messages with the specified attributes.

## See Also

### Getting the Search Criteria

- [searchTerms](intents/insearchformessagesintent/searchterms.md)
- [searchTermsOperator](intents/insearchformessagesintent/searchtermsoperator.md)
- [dateTimeRange](intents/insearchformessagesintent/datetimerange.md)
