Windows Dev Center

LockScreen.SetImageFileAsync | setImageFileAsync method

Sets the lock screen image from a StorageFile object.

Syntax


Public Shared Function SetImageFileAsync(
  value As IStorageFile 
) As IAsyncAction

Parameters

value

Type: IStorageFile

The StorageFile object that contains the new image for the lock screen.

Return value

Type: IAsyncAction

The object used to set the image for the lock screen.

Requirements (Windows 10 device family)

Device family

Desktop

API contract

Windows.System.UserProfile.UserProfileLockScreenContract, introduced version 1.0
Windows.System.UserProfile.UserProfileContract, introduced version 1.0

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.System.UserProfile.UserProfileLockScreenContract.winmd
Windows.System.UserProfile.UserProfileContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.winmd

See also

Personalization app sample
LockScreen
LockScreen.getImageStream
LockScreen.originalImageFile
LockScreen.setImageStreamAsync
Lock screen overview

 

 

Show:
© 2015 Microsoft