# TaskId.Child(string)

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/TaskId.cs#L40-L45)

```csharp
public TaskId Child(string segment)
```

Creates a child identifier by appending one logical segment.

### Parameters

- `segment` (`string`)

### Exceptions

- `System.ArgumentException`: `segment` is `null`, empty, or contains an unpaired UTF-16 surrogate.
