In This Article

EnvironmentHelper Class

Provides helper methods for interacting with the environment and platform.

public static class EnvironmentHelper
Inheritance:
object object

Methods

IsFeatureSupported(WindowsFeatureKind)

Returns whether the specified Windows operating system feature is supported.

public static bool IsFeatureSupported(WindowsFeatureKind featureKind)
Parameter Type Description
featureKind WindowsFeatureKind

A WindowsFeatureKind that specifies the kind of feature.

Returns

bool:

true if the specified Windows operating system feature is supported; otherwise, false.

IsWindows()

Returns whether the operating system is a Windows platform.

public static bool IsWindows()

Returns

bool:

true if the operating system is a Windows platform; otherwise, false.

IsWindowsMinimumRelease(WindowsRelease)

Returns whether the operating system is a Windows platform that is at least the specified minimum release version.

public static bool IsWindowsMinimumRelease(WindowsRelease minimumRelease)
Parameter Type Description
minimumRelease WindowsRelease

A WindowsRelease that indicates the minimum required release version.

Returns

bool:

true if the operating system is a Windows platform that is at least the specified minimum release version; otherwise, false.

Remarks

Proper use of this method requires the app's manifest to indicate Windows 10 support. Otherwise Windows 8 is emulated by .NET, even on a Windows 10 or later system.

Inherited Members