System.IO.FileShare Enum

public enum FileShare

Base Types

Object
  ValueType
    Enum
      FileShare

Assembly

mscorlib

Library

BCL

Summary

Specifies the level of access permitted for a file that is already in use.

Description

This enumeration is used to specify the way in which multiple threads access the same file. The level of access is set by the first thread that requests access to the file. For example, if a thread opens a file and specifies FileShare.Read , other threads are permitted to open the file for reading but not for writing.

Attributes

FlagsAttribute

See Also

System.IO Namespace

Members

FileShare Fields

FileShare.None Field
FileShare.Read Field
FileShare.ReadWrite Field
FileShare.Write Field
FileShare.value__ Field


FileShare.None Field

None = 0x0;

Summary

Specifies that the file cannot be accessed by additional threads.

See Also

System.IO.FileShare Enum, System.IO Namespace

FileShare.Read Field

Read = 0x1;

Summary

Specifies that additional threads can share read access to the file. This value does not determine whether such access is granted, however.

See Also

System.IO.FileShare Enum, System.IO Namespace

FileShare.ReadWrite Field

ReadWrite = Read | Write;

Summary

Specifies that additional threads can share read and/or write access to the file. This value does not determine whether such access is granted, however.

See Also

System.IO.FileShare Enum, System.IO Namespace

FileShare.Write Field

Write = 0x2;

Summary

Specifies that additional threads can share write access to the file. This value does not determine whether such access is granted, however.

See Also

System.IO.FileShare Enum, System.IO Namespace

FileShare.value__ Field

value__;

See Also

System.IO.FileShare Enum, System.IO Namespace