# ConfiguredDurableTask.WithId(string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.configureddurabletask/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.configureddurabletask/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTask.cs#L619)

```csharp
public ConfiguredDurableTask WithId(string name)
```

Returns a configuration which names the task.

### Parameters

- `name` (`string`): The definition to start.

### Exceptions

- `System.InvalidOperationException`: This configuration already has an identifier.
