You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
4
-
// See LICENSE file in the project root for full license information.
5
-
//
1
+
// Licensed to the .NET Foundation under one or more agreements.
2
+
// The .NET Foundation licenses this file to you under the MIT license.
6
3
7
4
namespaceSystem.IO
8
5
{
9
6
/// <summary>
10
7
/// Specifies the position in a stream to use for seeking.
11
8
/// </summary>
12
-
/// <remarks>These constants match Win32's FILE_BEGIN, FILE_CURRENT, and FILE_END</remarks>
9
+
/// <remarks>
10
+
/// <para>
11
+
/// <see cref="SeekOrigin"/> is used by the Seek methods of <see cref="Stream"/>, <see cref="MemoryStream"/>, and other streams.
12
+
/// </para>
13
+
/// <para>
14
+
/// These constants match Win32's FILE_BEGIN, FILE_CURRENT, and FILE_END values.
15
+
/// </para>
16
+
/// </remarks>
13
17
[Serializable]
14
18
publicenumSeekOrigin
15
19
{
16
20
/// <summary>
17
21
/// Specifies the beginning of a stream.
18
22
/// </summary>
23
+
/// <remarks>
24
+
/// Seeking to the beginning of a stream sets the position to zero.
25
+
/// </remarks>
19
26
Begin=0,
20
27
21
28
/// <summary>
22
29
/// Specifies the current position within a stream.
23
30
/// </summary>
31
+
/// <remarks>
32
+
/// Seeking relative to the current position allows you to move forward or backward from the current position by specifying a positive or negative offset.
33
+
/// </remarks>
24
34
Current=1,
25
35
26
36
/// <summary>
27
37
/// Specifies the end of a stream.
28
38
/// </summary>
39
+
/// <remarks>
40
+
/// Seeking relative to the end of a stream allows you to position at or before the end by specifying a zero or negative offset.
0 commit comments