diff options
Diffstat (limited to 'src/WixToolset.Core.Native/Msi/OpenDatabase.cs')
| -rw-r--r-- | src/WixToolset.Core.Native/Msi/OpenDatabase.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/WixToolset.Core.Native/Msi/OpenDatabase.cs b/src/WixToolset.Core.Native/Msi/OpenDatabase.cs new file mode 100644 index 00000000..18a78f77 --- /dev/null +++ b/src/WixToolset.Core.Native/Msi/OpenDatabase.cs | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Core.Native.Msi | ||
| 4 | { | ||
| 5 | /// <summary> | ||
| 6 | /// Enum of predefined persist modes used when opening a database. | ||
| 7 | /// </summary> | ||
| 8 | public enum OpenDatabase | ||
| 9 | { | ||
| 10 | /// <summary> | ||
| 11 | /// Open a database read-only, no persistent changes. | ||
| 12 | /// </summary> | ||
| 13 | ReadOnly = 0, | ||
| 14 | |||
| 15 | /// <summary> | ||
| 16 | /// Open a database read/write in transaction mode. | ||
| 17 | /// </summary> | ||
| 18 | Transact = 1, | ||
| 19 | |||
| 20 | /// <summary> | ||
| 21 | /// Open a database direct read/write without transaction. | ||
| 22 | /// </summary> | ||
| 23 | Direct = 2, | ||
| 24 | |||
| 25 | /// <summary> | ||
| 26 | /// Create a new database, transact mode read/write. | ||
| 27 | /// </summary> | ||
| 28 | Create = 3, | ||
| 29 | |||
| 30 | /// <summary> | ||
| 31 | /// Create a new database, direct mode read/write. | ||
| 32 | /// </summary> | ||
| 33 | CreateDirect = 4, | ||
| 34 | |||
| 35 | /// <summary> | ||
| 36 | /// Indicates a patch file is being opened. | ||
| 37 | /// </summary> | ||
| 38 | OpenPatchFile = 32 | ||
| 39 | } | ||
| 40 | } | ||
