# VersionRecorded Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.diagnostics.durabletaskevents.versionrecorded/)

## VersionRecorded(IGrainContext, TaskId, string, int) {#constructor-orleans-runtime-igraincontext-orleans-durable-tasks-taskid-string-in-b7e870b7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.diagnostics.durabletaskevents.versionrecorded/constructors/constructor-orleans-runtime-igraincontext-orleans-durable-tasks-taskid-string-in-b7e870b7/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/Diagnostics/DurableTaskEvents.cs#L147-L153)

```csharp
public VersionRecorded(IGrainContext grainContext, TaskId taskId, string name, int version)
```

Event payload for a version decision which an execution recorded: the version of a change which the execution follows from then on, which `DurableTask.GetVersion` returns to it and to its steps.

### Parameters

- `grainContext` (`IGrainContext`): The activation whose runtime raised the event.
- `taskId` (`TaskId`): The execution which recorded the decision.
- `name` (`string`): The change's name.
- `version` (`int`): The recorded version: the calling code's newest version for an execution which reached the call first, or `0` for one which an earlier deployment ran past it.
