Stream.Seek(0, SeekOrigin.Begin) or Position = 0

Use Position when setting an absolute position and Seek when setting a relative position. Both are provided for convenience so you can choose one that fits the style and readability of your code. Accessing Position requires the stream be seekable so they’re safely interchangeable.

Leave a Comment