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