aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/IIsWebErrorTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/IIsWebErrorTuple.cs')
-rw-r--r--src/wixext/Tuples/IIsWebErrorTuple.cs87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/wixext/Tuples/IIsWebErrorTuple.cs b/src/wixext/Tuples/IIsWebErrorTuple.cs
new file mode 100644
index 00000000..ba6b2722
--- /dev/null
+++ b/src/wixext/Tuples/IIsWebErrorTuple.cs
@@ -0,0 +1,87 @@
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 IIsWebError = new IntermediateTupleDefinition(
11 IisTupleDefinitionType.IIsWebError.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(IIsWebErrorTupleFields.ErrorCode), IntermediateFieldType.Number),
15 new IntermediateFieldDefinition(nameof(IIsWebErrorTupleFields.SubCode), IntermediateFieldType.Number),
16 new IntermediateFieldDefinition(nameof(IIsWebErrorTupleFields.ParentType), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(IIsWebErrorTupleFields.ParentValue), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(IIsWebErrorTupleFields.File), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(IIsWebErrorTupleFields.URL), IntermediateFieldType.String),
20 },
21 typeof(IIsWebErrorTuple));
22 }
23}
24
25namespace WixToolset.Iis.Tuples
26{
27 using WixToolset.Data;
28
29 public enum IIsWebErrorTupleFields
30 {
31 ErrorCode,
32 SubCode,
33 ParentType,
34 ParentValue,
35 File,
36 URL,
37 }
38
39 public class IIsWebErrorTuple : IntermediateTuple
40 {
41 public IIsWebErrorTuple() : base(IisTupleDefinitions.IIsWebError, null, null)
42 {
43 }
44
45 public IIsWebErrorTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsWebError, sourceLineNumber, id)
46 {
47 }
48
49 public IntermediateField this[IIsWebErrorTupleFields index] => this.Fields[(int)index];
50
51 public int ErrorCode
52 {
53 get => this.Fields[(int)IIsWebErrorTupleFields.ErrorCode].AsNumber();
54 set => this.Set((int)IIsWebErrorTupleFields.ErrorCode, value);
55 }
56
57 public int SubCode
58 {
59 get => this.Fields[(int)IIsWebErrorTupleFields.SubCode].AsNumber();
60 set => this.Set((int)IIsWebErrorTupleFields.SubCode, value);
61 }
62
63 public int ParentType
64 {
65 get => this.Fields[(int)IIsWebErrorTupleFields.ParentType].AsNumber();
66 set => this.Set((int)IIsWebErrorTupleFields.ParentType, value);
67 }
68
69 public string ParentValue
70 {
71 get => this.Fields[(int)IIsWebErrorTupleFields.ParentValue].AsString();
72 set => this.Set((int)IIsWebErrorTupleFields.ParentValue, value);
73 }
74
75 public string File
76 {
77 get => this.Fields[(int)IIsWebErrorTupleFields.File].AsString();
78 set => this.Set((int)IIsWebErrorTupleFields.File, value);
79 }
80
81 public string URL
82 {
83 get => this.Fields[(int)IIsWebErrorTupleFields.URL].AsString();
84 set => this.Set((int)IIsWebErrorTupleFields.URL, value);
85 }
86 }
87} \ No newline at end of file