Partager via


Platform Class

Definition

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.

Applies to