aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/HelpFilterTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/HelpFilterTuple.cs')
-rw-r--r--src/wixext/Tuples/HelpFilterTuple.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/wixext/Tuples/HelpFilterTuple.cs b/src/wixext/Tuples/HelpFilterTuple.cs
new file mode 100644
index 00000000..6592defa
--- /dev/null
+++ b/src/wixext/Tuples/HelpFilterTuple.cs
@@ -0,0 +1,55 @@
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.VisualStudio
4{
5 using WixToolset.Data;
6 using WixToolset.VisualStudio.Tuples;
7
8 public static partial class VSTupleDefinitions
9 {
10 public static readonly IntermediateTupleDefinition HelpFilter = new IntermediateTupleDefinition(
11 VSTupleDefinitionType.HelpFilter.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(HelpFilterTupleFields.Description), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(HelpFilterTupleFields.QueryString), IntermediateFieldType.String),
16 },
17 typeof(HelpFilterTuple));
18 }
19}
20
21namespace WixToolset.VisualStudio.Tuples
22{
23 using WixToolset.Data;
24
25 public enum HelpFilterTupleFields
26 {
27 Description,
28 QueryString,
29 }
30
31 public class HelpFilterTuple : IntermediateTuple
32 {
33 public HelpFilterTuple() : base(VSTupleDefinitions.HelpFilter, null, null)
34 {
35 }
36
37 public HelpFilterTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(VSTupleDefinitions.HelpFilter, sourceLineNumber, id)
38 {
39 }
40
41 public IntermediateField this[HelpFilterTupleFields index] => this.Fields[(int)index];
42
43 public string Description
44 {
45 get => this.Fields[(int)HelpFilterTupleFields.Description].AsString();
46 set => this.Set((int)HelpFilterTupleFields.Description, value);
47 }
48
49 public string QueryString
50 {
51 get => this.Fields[(int)HelpFilterTupleFields.QueryString].AsString();
52 set => this.Set((int)HelpFilterTupleFields.QueryString, value);
53 }
54 }
55} \ No newline at end of file