Environment.WinRT.cs 869 B

1234567891011121314151617181920212223242526
  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.
  4. using System.IO;
  5. using Internal.Runtime.Augments;
  6. namespace System
  7. {
  8. public static partial class Environment
  9. {
  10. public static string UserName => "Windows User";
  11. public static string UserDomainName => "Windows Domain";
  12. internal static readonly bool IsWindows8OrAbove = true;
  13. private static string GetFolderPathCore(SpecialFolder folder, SpecialFolderOption option)
  14. {
  15. WinRTInteropCallbacks callbacks = WinRTInterop.UnsafeCallbacks;
  16. return callbacks != null && callbacks.IsAppxModel() ?
  17. callbacks.GetFolderPath(folder, option) :
  18. string.Empty;
  19. }
  20. }
  21. }