# GrainStateWithMetaData&lt;TView&gt; Constructors

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

## GrainStateWithMetaData&lt;TView&gt; {#constructor-37a11eb6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.statestorage.grainstatewithmetadata-1/constructors/constructor-37a11eb6/)

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

```csharp
public GrainStateWithMetaData()
```

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

## GrainStateWithMetaData&lt;TView&gt;(TView) {#constructor-tview-0de2a780}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.statestorage.grainstatewithmetadata-1/constructors/constructor-tview-0de2a780/)

[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
