# ScheduledTask.GetFeature

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

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

```csharp
public virtual TFeature? GetFeature<TFeature>()
```

Returns the feature `TFeature` through which the task's host describes the task, or `null` when the host provides none.

### Returns

The feature, or `null`.
