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