aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs b/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs
new file mode 100644
index 00000000..701d85b4
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs
@@ -0,0 +1,84 @@
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
4{
5 using WixToolset.Data.Tuples;
6
7 public static partial class TupleDefinitions
8 {
9 public static readonly IntermediateTupleDefinition MsiServiceConfig = new IntermediateTupleDefinition(
10 TupleDefinitionType.MsiServiceConfig,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.MsiServiceConfig), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Name), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Event), IntermediateFieldType.Number),
16 new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.ConfigType), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Argument), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Component_), IntermediateFieldType.String),
19 },
20 typeof(MsiServiceConfigTuple));
21 }
22}
23
24namespace WixToolset.Data.Tuples
25{
26 public enum MsiServiceConfigTupleFields
27 {
28 MsiServiceConfig,
29 Name,
30 Event,
31 ConfigType,
32 Argument,
33 Component_,
34 }
35
36 public class MsiServiceConfigTuple : IntermediateTuple
37 {
38 public MsiServiceConfigTuple() : base(TupleDefinitions.MsiServiceConfig, null, null)
39 {
40 }
41
42 public MsiServiceConfigTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiServiceConfig, sourceLineNumber, id)
43 {
44 }
45
46 public IntermediateField this[MsiServiceConfigTupleFields index] => this.Fields[(int)index];
47
48 public string MsiServiceConfig
49 {
50 get => (string)this.Fields[(int)MsiServiceConfigTupleFields.MsiServiceConfig]?.Value;
51 set => this.Set((int)MsiServiceConfigTupleFields.MsiServiceConfig, value);
52 }
53
54 public string Name
55 {
56 get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Name]?.Value;
57 set => this.Set((int)MsiServiceConfigTupleFields.Name, value);
58 }
59
60 public int Event
61 {
62 get => (int)this.Fields[(int)MsiServiceConfigTupleFields.Event]?.Value;
63 set => this.Set((int)MsiServiceConfigTupleFields.Event, value);
64 }
65
66 public int ConfigType
67 {
68 get => (int)this.Fields[(int)MsiServiceConfigTupleFields.ConfigType]?.Value;
69 set => this.Set((int)MsiServiceConfigTupleFields.ConfigType, value);
70 }
71
72 public string Argument
73 {
74 get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Argument]?.Value;
75 set => this.Set((int)MsiServiceConfigTupleFields.Argument, value);
76 }
77
78 public string Component_
79 {
80 get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Component_]?.Value;
81 set => this.Set((int)MsiServiceConfigTupleFields.Component_, value);
82 }
83 }
84} \ No newline at end of file