mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Fix API comments on FileSystem enums to have valid XML.
Commit migrated from https://github.com/dotnet/corefx/commit/4eedcb11fe8c6f72f9be4813b69c026dbba29c42
This commit is contained in:
1 parent
3b16d158af
commit
874cbd5d8b
5 files changed
+40
-41
No files matched your search
@@ -6,29 +6,29 @@ using System;
|
||||
namespace System.IO
|
||||
{
|
||||
/// <devdoc>
|
||||
/// <para>Defines constants for read, write, or read/write
|
||||
/// access to a file.</para>
|
||||
/// Defines constants for read, write, or read/write
|
||||
/// access to a file.
|
||||
/// <devdoc>
|
||||
[Flags]
|
||||
[System.Runtime.InteropServices.ComVisible(true)]
|
||||
public enum FileAccess
|
||||
{
|
||||
/// <devdoc>
|
||||
/// <paraSpecifies read access to the file. Data can be read from the file and
|
||||
/// the file pointer can be moved. Combine with WRITE for read-write access.<para>
|
||||
/// Specifies read access to the file. Data can be read from the file and
|
||||
/// the file pointer can be moved. Combine with WRITE for read-write access.
|
||||
/// </devdoc>
|
||||
Read = 1,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Specifies write access to the file. Data can be written to the file and
|
||||
/// the file pointer can be moved. Combine with READ for read-write access.<para>
|
||||
/// Specifies write access to the file. Data can be written to the file and
|
||||
/// the file pointer can be moved. Combine with READ for read-write access.
|
||||
/// </devdoc>
|
||||
Write = 2,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Specifies read and write access to the file. Data can be written to the
|
||||
/// Specifies read and write access to the file. Data can be written to the
|
||||
/// file and the file pointer can be moved. Data can also be read from the
|
||||
/// file.<para>
|
||||
/// file.
|
||||
/// </devdoc>
|
||||
ReadWrite = 3
|
||||
}
|
||||
|
||||
@@ -6,47 +6,47 @@ using System;
|
||||
namespace System.IO
|
||||
{
|
||||
/// <devdoc>
|
||||
/// <para>Contains constants for specifying how the OS should open a file.
|
||||
/// Contains constants for specifying how the OS should open a file.
|
||||
/// These will control whether you overwrite a file, open an existing
|
||||
/// file, or some combination thereof.
|
||||
///
|
||||
/// To append to a file, use Append (which maps to OpenOrCreate then we seek
|
||||
/// to the end of the file). To truncate a file or create it if it doesn't
|
||||
/// exist, use Create.</para>
|
||||
/// To append to a file, use Append (which maps to OpenOrCreate then we seek
|
||||
/// to the end of the file). To truncate a file or create it if it doesn't
|
||||
/// exist, use Create.
|
||||
/// <devdoc>
|
||||
[System.Runtime.InteropServices.ComVisible(true)]
|
||||
public enum FileMode
|
||||
{
|
||||
/// <devdoc>
|
||||
/// <para>Creates a new file. An exception is raised if the file already exists.<para>
|
||||
/// Creates a new file. An exception is raised if the file already exists.
|
||||
/// </devdoc>
|
||||
CreateNew = 1,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Creates a new file. If the file already exists, it is overwritten.<para>
|
||||
/// Creates a new file. If the file already exists, it is overwritten.
|
||||
/// </devdoc>
|
||||
Create = 2,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Opens an existing file. An exception is raised if the file does not exist.<para>
|
||||
/// Opens an existing file. An exception is raised if the file does not exist.
|
||||
/// </devdoc>
|
||||
Open = 3,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Opens the file if it exists. Otherwise, creates a new file.<para>
|
||||
/// Opens the file if it exists. Otherwise, creates a new file.
|
||||
/// </devdoc>
|
||||
OpenOrCreate = 4,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Opens an existing file. Once opened, the file is truncated so that its
|
||||
/// Opens an existing file. Once opened, the file is truncated so that its
|
||||
/// size is zero bytes. The calling process must open the file with at least
|
||||
/// WRITE access. An exception is raised if the file does not exist.<para>
|
||||
/// WRITE access. An exception is raised if the file does not exist.
|
||||
/// </devdoc>
|
||||
Truncate = 5,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Opens the file if it exists and seeks to the end. Otherwise,
|
||||
/// creates a new file.<para>
|
||||
/// Opens the file if it exists and seeks to the end. Otherwise,
|
||||
/// creates a new file.
|
||||
/// </devdoc>
|
||||
Append = 6
|
||||
}
|
||||
|
||||
@@ -6,52 +6,52 @@ using System;
|
||||
namespace System.IO
|
||||
{
|
||||
/// <devdoc>
|
||||
/// <para>Contains constants for controlling file sharing options while
|
||||
/// Contains constants for controlling file sharing options while
|
||||
/// opening files. You can specify what access othter processes trying
|
||||
/// to open the same file concurrently can have.
|
||||
///
|
||||
/// Note these values currently match the values for FILE_SHARE_READ,
|
||||
/// FILE_SHARE_WRITE, and FILE_SHARE_DELETE in winnt.h</para>
|
||||
/// Note these values currently match the values for FILE_SHARE_READ,
|
||||
/// FILE_SHARE_WRITE, and FILE_SHARE_DELETE in winnt.h
|
||||
/// <devdoc>
|
||||
[Flags]
|
||||
[System.Runtime.InteropServices.ComVisible(true)]
|
||||
public enum FileShare
|
||||
{
|
||||
/// <devdoc>
|
||||
/// <para>No sharing. Any request to open the file (by this process or another
|
||||
/// process will fail until the file is closed.<para>
|
||||
/// No sharing. Any request to open the file (by this process or another
|
||||
/// process will fail until the file is closed.
|
||||
/// </devdoc>
|
||||
None = 0x00,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Allows subsequent opening of the file for reading. If this flag is not
|
||||
/// Allows subsequent opening of the file for reading. If this flag is not
|
||||
/// specified, any request to open the file for reading (by this process or
|
||||
/// another process) will fail until the file is closed.<para>
|
||||
/// another process) will fail until the file is closed.
|
||||
/// </devdoc>
|
||||
Read = 0x01,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Allows subsequent opening of the file for writing. If this flag is not
|
||||
/// Allows subsequent opening of the file for writing. If this flag is not
|
||||
/// specified, any request to open the file for writing (by this process or
|
||||
/// another process) will fail until the file is closed.<para>
|
||||
/// another process) will fail until the file is closed.
|
||||
/// </devdoc>
|
||||
Write = 0x02,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Allows subsequent opening of the file for writing or reading. If this flag
|
||||
/// Allows subsequent opening of the file for writing or reading. If this flag
|
||||
/// is not specified, any request to open the file for writing or reading (by
|
||||
/// this process or another process) will fail until the file is closed.<para>
|
||||
/// this process or another process) will fail until the file is closed.
|
||||
/// </devdoc>
|
||||
ReadWrite = 0x03,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Open the file, but allow someone else to delete the file.<para>
|
||||
/// Open the file, but allow someone else to delete the file.
|
||||
/// </devdoc>
|
||||
Delete = 0x04,
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Whether the file handle should be inheritable by child processes.
|
||||
/// Note this is not directly supported like this by Win32.<para>
|
||||
/// Whether the file handle should be inheritable by child processes.
|
||||
/// Note this is not directly supported like this by Win32.
|
||||
/// </devdoc>
|
||||
Inheritable = 0x10,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user