aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-07-23 13:46:09 -0700
committerRob Mensching <rob@firegiant.com>2018-07-23 13:46:09 -0700
commite130a7a296696e3a7b1229cf580de393b3f20cbd (patch)
treec7677e1fcb88bfd88b9a314ccc23d987f8bbc870 /src/WixToolset.Extensibility/Data/ComponentKeyPath.cs
parentd3da4f5cc6f07376a783ba4bdd03c3bb8dc5e480 (diff)
downloadwix-e130a7a296696e3a7b1229cf580de393b3f20cbd.tar.gz
wix-e130a7a296696e3a7b1229cf580de393b3f20cbd.tar.bz2
wix-e130a7a296696e3a7b1229cf580de393b3f20cbd.zip
Reorganize data into Extensibility.Data namespace
Diffstat (limited to 'src/WixToolset.Extensibility/Data/ComponentKeyPath.cs')
-rw-r--r--src/WixToolset.Extensibility/Data/ComponentKeyPath.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs b/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs
new file mode 100644
index 00000000..112f562c
--- /dev/null
+++ b/src/WixToolset.Extensibility/Data/ComponentKeyPath.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.Extensibility.Data
4{
5 public enum ComponentKeyPathType
6 {
7 /// <summary>
8 /// Not a key path.
9 /// </summary>
10 None,
11
12 /// <summary>
13 /// File resource as a key path.
14 /// </summary>
15 File,
16
17 /// <summary>
18 /// Folder as a key path.
19 /// </summary>
20 Directory,
21
22 /// <summary>
23 /// ODBC data source as a key path.
24 /// </summary>
25 OdbcDataSource,
26
27 /// <summary>
28 /// A simple registry key acting as a key path.
29 /// </summary>
30 Registry,
31
32 /// <summary>
33 /// A registry key that contains a formatted property acting as a key path.
34 /// </summary>
35 RegistryFormatted
36 }
37
38 public class ComponentKeyPath
39 {
40 /// <summary>
41 /// Identifier of the resource to be a key path.
42 /// </summary>
43 public string Id { get; set; }
44
45 /// <summary>
46 /// Indicates whether the key path was explicitly set for this resource.
47 /// </summary>
48 public bool Explicit { get; set; }
49
50 /// <summary>
51 /// Type of resource to be the key path.
52 /// </summary>
53 public ComponentKeyPathType Type { get; set; }
54 }
55}