BackgroundExecutionManager.RequestAccessAsync(String) | requestAccessAsync(String) method

This topic has not yet been rated - Rate this topic

Presents the user with a dialog box that requests that the specified app be added to the lock screen.

Syntax


Windows.ApplicationModel.Background.BackgroundExecutionManager.requestAccessAsync(applicationId).done( /* Your success and error handlers */ );

Parameters

applicationId

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The Package Relative Application ID (PRAID) of the app to be added to the lock screen. The specified app must be in the same package as the calling app.

Return value

Type: IAsyncOperation<BackgroundAccessStatus>

The object, bound to the app specified by applicationId, that is used to request that the app be added to the lock screen's apps list. When the operation completes, it returns a member of the BackgroundAccessStatus enumeration that specifies the outcome.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.ApplicationModel.Background
Windows::ApplicationModel::Background [C++]

Metadata

Windows.winmd

See also

BackgroundExecutionManager
RequestAccessAsync

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.