 | UtilIsRestartRequiredForWinAppAccess Property |
Gets a value indicating whether a restart is required to access Windows apps.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool IsRestartRequiredForWinAppAccess { get; }Public Shared ReadOnly Property IsRestartRequiredForWinAppAccess As Boolean
Get
Property Value
Type:
Boolean
RemarksIf this property returns
true, the current process does not have
the required privileges to access Windows apps. You can get the those privileges
by calling the
RestartWithUiAccess method like in the example below.
ExamplesThe following code checks for the privileges to access Windows apps
and restarts the executable in order to get those privileges:
if (Ranorex.Core.Util.IsRestartRequiredForWinAppAccess)
return Ranorex.Core.Util.RestartWithUiAccess();
See Also