Windows Dev Center

LockScreen.GetImageStream | getImageStream method

Gets the current lock screen image as a data stream.

Syntax


Public Shared Function GetImageStream() As IRandomAccessStream

Parameters

This method has no parameters.

Return value

Type: IRandomAccessStream

The stream that contains the lock screen image data.

Remarks

This method can be called only by apps that have set the "Picture Library Access" capability in the package manifest or by the app that set this image on the lock screen.

Examples

The following example demonstrates this method being used to retrieve the current lock screen image. For a full sample, see the Personalization app sample.

No code example is currently available or this language may not be supported.

Requirements (Windows 10 device family)

Device family

Desktop
Mobile

API contract

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

Namespace

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

Metadata

Windows.System.UserProfile.UserProfileContract.winmd
Windows.System.UserProfile.UserProfileLockScreenContract.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

LockScreen
LockScreen.originalImageFile
LockScreen.setImageFileAsync
LockScreen.setImageStreamAsync
Lock screen overview

 

 

Show:
© 2015 Microsoft