Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.07 KB

educationsettings_iseducationenvironment.md

File metadata and controls

39 lines (29 loc) · 1.07 KB
-api-id -api-type
P:Windows.System.Profile.EducationSettings.IsEducationEnvironment
winrt property

Windows.System.Profile.EducationSettings.IsEducationEnvironment

-description

Gets a Boolean value indicating if the app is running in an education environment.

-property-value

A Boolean value indicating if the app is running in an education environment.

-remarks

Returns true when running an Education SKU (Pro Education or Education).

Returns true when the SetEduPolicies policy is set.

Always returns false on the Home SKU.

A true value means the PC is running in an education environment (set either by the SKU or by the IT admin) and sets policies and behaviors to make Windows education ready.

-see-also

-examples

if (Windows.System.Profile.EducationSettings.IsEducationEnvironment)
{
    SetHomePage("about:EDU");
}
else
{
    SetHomePage("about:start");
}