When you call file access-related functions, you can use enumeration members in your code in place of the actual values.
The OpenShare enumeration defines constants that identify a file's sharing level. The following table lists the OpenShare enumeration members.
| Member | Description |
|---|---|
| OpenShare.Default | Shared. This is the default. |
| OpenShare.LockRead | Cannot be read. |
| OpenShare.LockReadWrite | Cannot be read or written to. |
| OpenShare.LockWrite | Cannot be written to. |
| OpenShare.Shared | Shared. |