Fix IDE0025 (use expression body for properties)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / Environment.SpecialFolderOption.cs
blobcd0e5714ef0c0a4f6c8996412419e68e2e9b1ad5
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 namespace System
7 public static partial class Environment
9 public enum SpecialFolderOption
11 None = 0,
12 Create = SpecialFolderOptionValues.CSIDL_FLAG_CREATE,
13 DoNotVerify = SpecialFolderOptionValues.CSIDL_FLAG_DONT_VERIFY,
16 // These values are specific to Windows and are known to SHGetFolderPath, however they are
17 // also the values used in the SpecialFolderOption enum. As such, we keep them as constants
18 // with their Win32 names, but keep them here rather than in Interop.Kernel32 as they're
19 // used on all platforms.
20 private static class SpecialFolderOptionValues
22 /// <summary>
23 /// Force folder creation in SHGetFolderPath. Equivalent of KF_FLAG_CREATE (0x00008000).
24 /// </summary>
25 internal const int CSIDL_FLAG_CREATE = 0x8000;
27 /// <summary>
28 /// Return an unverified folder path. Equivalent of KF_FLAG_DONT_VERIFY (0x00004000).
29 /// </summary>
30 internal const int CSIDL_FLAG_DONT_VERIFY = 0x4000;