# LogStateWithMetaData&lt;TEntry&gt;.FlipBit(string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.logstorage.logstatewithmetadata-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.logstorage.logstatewithmetadata-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/LogStorage/LogStateWithMetaData.cs#L107-L110)

```csharp
public bool FlipBit(string replica)
```

Toggle one of the bits in `Orleans.EventSourcing.LogStorage.LogStateWithMetaData-1.WriteVector` and return the new value.

### Parameters

- `replica` (`string`): The replica for which we want to flip the bit

### Returns

the state of the bit after flipping it
