diff options
Diffstat (limited to 'src/wixext/Tuples/ComPlusPartitionUserTuple.cs')
-rw-r--r-- | src/wixext/Tuples/ComPlusPartitionUserTuple.cs | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/wixext/Tuples/ComPlusPartitionUserTuple.cs b/src/wixext/Tuples/ComPlusPartitionUserTuple.cs new file mode 100644 index 00000000..33a58d38 --- /dev/null +++ b/src/wixext/Tuples/ComPlusPartitionUserTuple.cs | |||
@@ -0,0 +1,71 @@ | |||
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.ComPlus | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.ComPlus.Tuples; | ||
7 | |||
8 | public static partial class ComPlusTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition ComPlusPartitionUser = new IntermediateTupleDefinition( | ||
11 | ComPlusTupleDefinitionType.ComPlusPartitionUser.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(ComPlusPartitionUserTupleFields.PartitionUser), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(ComPlusPartitionUserTupleFields.Partition_), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(ComPlusPartitionUserTupleFields.Component_), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(ComPlusPartitionUserTupleFields.User_), IntermediateFieldType.String), | ||
18 | }, | ||
19 | typeof(ComPlusPartitionUserTuple)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.ComPlus.Tuples | ||
24 | { | ||
25 | using WixToolset.Data; | ||
26 | |||
27 | public enum ComPlusPartitionUserTupleFields | ||
28 | { | ||
29 | PartitionUser, | ||
30 | Partition_, | ||
31 | Component_, | ||
32 | User_, | ||
33 | } | ||
34 | |||
35 | public class ComPlusPartitionUserTuple : IntermediateTuple | ||
36 | { | ||
37 | public ComPlusPartitionUserTuple() : base(ComPlusTupleDefinitions.ComPlusPartitionUser, null, null) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public ComPlusPartitionUserTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ComPlusTupleDefinitions.ComPlusPartitionUser, sourceLineNumber, id) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | public IntermediateField this[ComPlusPartitionUserTupleFields index] => this.Fields[(int)index]; | ||
46 | |||
47 | public string PartitionUser | ||
48 | { | ||
49 | get => this.Fields[(int)ComPlusPartitionUserTupleFields.PartitionUser].AsString(); | ||
50 | set => this.Set((int)ComPlusPartitionUserTupleFields.PartitionUser, value); | ||
51 | } | ||
52 | |||
53 | public string Partition_ | ||
54 | { | ||
55 | get => this.Fields[(int)ComPlusPartitionUserTupleFields.Partition_].AsString(); | ||
56 | set => this.Set((int)ComPlusPartitionUserTupleFields.Partition_, value); | ||
57 | } | ||
58 | |||
59 | public string Component_ | ||
60 | { | ||
61 | get => this.Fields[(int)ComPlusPartitionUserTupleFields.Component_].AsString(); | ||
62 | set => this.Set((int)ComPlusPartitionUserTupleFields.Component_, value); | ||
63 | } | ||
64 | |||
65 | public string User_ | ||
66 | { | ||
67 | get => this.Fields[(int)ComPlusPartitionUserTupleFields.User_].AsString(); | ||
68 | set => this.Set((int)ComPlusPartitionUserTupleFields.User_, value); | ||
69 | } | ||
70 | } | ||
71 | } \ No newline at end of file | ||