<!--
{
  "availability" : [
    "macOS: 12.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderFetchContentsOptions/strictVersioning",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:@E@NSFileProviderFetchContentsOptions@NSFileProviderFetchContentsOptionsStrictVersioning"
  },
  "title" : "strictVersioning"
}
-->

# strictVersioning

An option that indicates the system requires an exact match of the requested item’s version.

```
static var strictVersioning: NSFileProviderFetchContentsOptions { get }
```

## Discussion

If the system includes this option when calling your [`fetchPartialContents(for:version:request:minimalRange:aligningTo:options:completionHandler:)`](/documentation/FileProvider/NSFileProviderPartialContentFetching/fetchPartialContents(for:version:request:minimalRange:aligningTo:options:completionHandler:)) method, you must provide the requested version of the item. If you can’t provide the requested version, pass a [`NSFileProviderError.Code.versionNoLongerAvailable`](/documentation/FileProvider/NSFileProviderError/Code/versionNoLongerAvailable) error to the completion handler instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)