# DurableTaskContext.GetVersion(string, int, int)

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

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

```csharp
protected internal virtual int GetVersion(string name, int minSupported, int maxSupported)
```

Returns the version of the change `name` which this execution follows, deciding and recording it at the execution's first call for the name.

### Parameters

- `name` (`string`): The change's validated name.
- `minSupported` (`int`): The oldest version which the calling code supports, at least `0`.
- `maxSupported` (`int`): The newest version, at least `minSupported`.

### Returns

The execution's version, from `minSupported` to `maxSupported`.
