简体   繁体   中英

Check if Windows 8 app is running in assigned access mode

in an Windows Store App to do exams I need to know if the app or the user is running in Windows Assigned access mode.

Is there any way to get this done?

This code snippet will help you do that.

 LockApplicationHost host = LockApplicationHost.GetForCurrentView();
                if (null == host)
                {
                   //You are not on assigned access
                }
                else
                {
                  // Assigned access mode
                }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM