Platform Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
These are platform abstractions and platform specific implementations.
public ref class Platform abstract sealed
public static class Platform
type Platform = class
Public Class Platform
- Inheritance
-
Platform
Properties
IsCoreCLR |
True if PowerShell was built targeting .NET Core. |
IsIoT |
True if the underlying system is IoT. |
IsLinux |
True if the current platform is Linux. |
IsMacOS |
True if the current platform is macOS. |
IsNanoServer |
True if the underlying system is NanoServer. |
IsStaSupported |
Gets a value indicating whether the underlying system supports single-threaded apartment. |
IsWindows |
True if the current platform is Windows. |
IsWindowsDesktop |
True if underlying system is Windows Desktop. |
Methods
SelectProductNameForDirectory(Platform+XDG_Type) |
Function for choosing directory location of PowerShell for profile loading. |