# JournalStreamWriter.BeginEntry

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.journalstreamwriter/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.journalstreamwriter/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Journaling/JournalStreamWriter.cs#L25)

```csharp
public JournalEntryScope BeginEntry()
```

Begins writing one journal entry for this writer's state.

### Returns

A lexical entry scope. Dispose the returned value to abort the entry if [JournalEntryScope](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.journalentryscope/) is not called.
