---
title: "exported(as:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/anyappentity/exported(as:)-8qa8k"
---

# exported(as:)

Exports this entity’s content as an IntentFile.

## Declaration

```swift
func exported(as contentType: UTType? = nil) async throws -> IntentFile
```

## Parameters

- `contentType`: The desired export format (e.g., .json, .png). Pass nil to use the entity’s default representation.

## Return Value

Return Value The exported content as an IntentFile.

## Discussion

Discussion When no content type is specified, the entity’s first registered TransferRepresentation is used. The returned file contains the exported data and, when available, a sandbox-extended file URL that can be passed directly as a parameter to another intent. note: If the entity does not conform to Transferable or does not support the requested format.
