---
title: taskDescription
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlsessiontask/taskdescription
---

# taskDescription

An app-provided string value for the current task.

## Declaration

```swift
var taskDescription: String? { get set }
```

## Discussion

Discussion The system doesn’t interpret this value; use it for whatever purpose you see fit. For example, you could store a description of the task for debugging purposes, or a key to track the task in your own data structures.

## See Also

### Obtaining general task information

- [currentRequest](foundation/urlsessiontask/currentrequest.md)
- [originalRequest](foundation/urlsessiontask/originalrequest.md)
- [response](foundation/urlsessiontask/response.md)
- [taskIdentifier](foundation/urlsessiontask/taskidentifier.md)
- [error](foundation/urlsessiontask/error.md)
