/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/launcher/Plugins/Microsoft.Plugin.Program/ProgramSource.cs
31 строка
1 KB
Davide Giacometti
[Deps]Upgrade System.IO.Abstractions (#35656)
11 ноя 2024, 12:42
Не верифицирован
11 ноя 2024, 12:42
2ea9d56
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.IO.Abstractions; namespace Microsoft.Plugin.Program { /// <summary> /// Contains user added folder location contents as well as all user disabled applications /// </summary> /// <remarks> /// <para>Win32 class applications set UniqueIdentifier using their full file path</para> /// <para>UWP class applications set UniqueIdentifier using their Application User Model ID</para> /// <para>Custom user added program sources set UniqueIdentifier using their location</para> /// </remarks> public class ProgramSource { private static readonly IFileSystem FileSystem = new FileSystem(); private string name; public string Location { get; set; } public string Name { get => name ?? FileSystem.DirectoryInfo.New(Location).Name; set => name = value; } public bool Enabled { get; set; } = true; public string UniqueIdentifier { get; set; } } }