OpenMode Enum 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The enum used by commands to allow the user to specify how a file (or other item) should be opened.
public enum class OpenModepublic enum class OpenModeenum OpenModepublic enum OpenModetype OpenMode = Public Enum OpenMode- Inheritance
- 
				OpenMode
Fields
| Name | Value | Description | 
|---|---|---|
| Add | 0 | This opens the file for appending (similar to FileMode.Append) | 
| New | 1 | The file must be created new. If the file exists it is an error (similar to FileMode.CreateNew) | 
| Overwrite | 2 | Creates a new file, if the file already exists it is overwritten (similar to FileMode.Create) |