-api-id | -api-type |
---|---|
T:Windows.Storage.Streams.FileOpenDisposition |
winrt enum |
Enumeration values for actions to take on a file.
Opens a file only if it exists.
Opens a file. If the file does not exist, a new file will be created and opened.
Creates a new file if one does not exist. If the file does exist, this will fail.
Opens a file and truncates it so that its size is zero bytes. If the file does not exist, a new file will be created and opened.
Opens a file and truncates it so that its size is zero bytes. If the file does not exist, this will fail.
The results of the FileOpenDisposition values depend on whether the file exists or not.