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