From e130a7a296696e3a7b1229cf580de393b3f20cbd Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Mon, 23 Jul 2018 13:46:09 -0700 Subject: Reorganize data into Extensibility.Data namespace --- .../Data/ComponentKeyPath.cs | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/WixToolset.Extensibility/Data/ComponentKeyPath.cs (limited to 'src/WixToolset.Extensibility/Data/ComponentKeyPath.cs') 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 @@ +// 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. + +namespace WixToolset.Extensibility.Data +{ + public enum ComponentKeyPathType + { + /// + /// Not a key path. + /// + None, + + /// + /// File resource as a key path. + /// + File, + + /// + /// Folder as a key path. + /// + Directory, + + /// + /// ODBC data source as a key path. + /// + OdbcDataSource, + + /// + /// A simple registry key acting as a key path. + /// + Registry, + + /// + /// A registry key that contains a formatted property acting as a key path. + /// + RegistryFormatted + } + + public class ComponentKeyPath + { + /// + /// Identifier of the resource to be a key path. + /// + public string Id { get; set; } + + /// + /// Indicates whether the key path was explicitly set for this resource. + /// + public bool Explicit { get; set; } + + /// + /// Type of resource to be the key path. + /// + public ComponentKeyPathType Type { get; set; } + } +} -- cgit v1.2.3-55-g6feb