# GrainStateWithMetaData&lt;TView&gt;.GrainStateWithMetaData&lt;TView&gt;(TView)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.statestorage.grainstatewithmetadata-1/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.statestorage.grainstatewithmetadata-1/constructors/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/StateStorage/GrainStateWithMetaData.cs#L105-L110)

```csharp
public GrainStateWithMetaData(TView initialstate)
```

Initializes a new instance of the `Orleans.EventSourcing.StateStorage.GrainStateWithMetaData-1` class.

### Parameters

- `initialstate` (`TView`): The initial state of the view
