aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs')
-rw-r--r--src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs
new file mode 100644
index 00000000..b3d85c8a
--- /dev/null
+++ b/src/WixToolset.Data/WindowsInstaller/Rows/WixApprovedExeForElevationRow.cs
@@ -0,0 +1,78 @@
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
3namespace WixToolset.Data.WindowsInstaller.Rows
4{
5 /// <summary>
6 /// Specialization of a row for the WixApprovedExeForElevation table.
7 /// </summary>
8 public class WixApprovedExeForElevationRow : Row
9 {
10 /// <summary>
11 /// Creates an ApprovedExeForElevation row that does not belong to a table.
12 /// </summary>
13 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
14 /// <param name="tableDef">TableDefinition this ApprovedExeForElevation row belongs to and should get its column definitions from.</param>
15 public WixApprovedExeForElevationRow(SourceLineNumber sourceLineNumbers, TableDefinition tableDef) :
16 base(sourceLineNumbers, tableDef)
17 {
18 }
19
20 /// <summary>
21 /// Creates an ApprovedExeForElevation row that belongs to a table.
22 /// </summary>
23 /// <param name="sourceLineNumbers">Original source lines for this row.</param>
24 /// <param name="table">Table this ApprovedExeForElevation row belongs to and should get its column definitions from.</param>
25 public WixApprovedExeForElevationRow(SourceLineNumber sourceLineNumbers, Table table)
26 : base(sourceLineNumbers, table)
27 {
28 }
29
30 /// <summary>
31 /// Gets or sets the ApprovedExeForElevation identifier.
32 /// </summary>
33 /// <value>The ApprovedExeForElevation identifier.</value>
34 public string Id
35 {
36 get { return (string)this.Fields[0].Data; }
37 set { this.Fields[0].Data = value; }
38 }
39
40 /// <summary>
41 /// Gets or sets the Key path.
42 /// </summary>
43 /// <value>The Key path.</value>
44 public string Key
45 {
46 get { return (string)this.Fields[1].Data; }
47 set { this.Fields[1].Data = value; }
48 }
49
50 /// <summary>
51 /// Gets or sets the Value name.
52 /// </summary>
53 /// <value>The Value name.</value>
54 public string ValueName
55 {
56 get { return (string)this.Fields[2].Data; }
57 set { this.Fields[2].Data = value; }
58 }
59
60 /// <summary>
61 /// Gets or sets the attibutes.
62 /// </summary>
63 /// <value>The BundleApprovedExeForElevationAttributes.</value>
64 public BundleApprovedExeForElevationAttributes Attributes
65 {
66 get { return (BundleApprovedExeForElevationAttributes)this.Fields[3].Data; }
67 set { this.Fields[3].Data = (int)value; }
68 }
69
70 /// <summary>
71 /// Gets whether this row is 64-bit.
72 /// </summary>
73 public bool Win64
74 {
75 get { return BundleApprovedExeForElevationAttributes.Win64 == (this.Attributes & BundleApprovedExeForElevationAttributes.Win64); }
76 }
77 }
78}