---
title: NSData.SearchOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsdata/searchoptions
---

# NSData.SearchOptions

Options for method used to search data objects.

## Declaration

```swift
struct SearchOptions
```

## Overview

Overview These options are used with the range(of:options:in:) method.

## Topics

### Initializers

- [init(rawValue:)](foundation/nsdata/searchoptions/init(rawvalue:).md)

### Constants

- [backwards](foundation/nsdata/searchoptions/backwards.md)
- [anchored](foundation/nsdata/searchoptions/anchored.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Finding Data

- [subdata(with:)](foundation/nsdata/subdata(with:).md)
- [range(of:options:in:)](foundation/nsdata/range(of:options:in:).md)
