LockScreen.GetImageUri method
Gets the Uniform Resource Identifier (URI) of the current lock screen background.
Syntax
public static Uri GetImageUri()
Public Shared Function GetImageUri() As Uri
public:
static Uri^ GetImageUri()
Parameters
This method has no parameters.
Return value
Type: System.Uri [.NET] | Windows::Foundation::Uri [C++]
The Uniform Resource Identifier (URI) of the current lock screen background.
Remarks
This method can be called while the app runs in the foreground or from a background agent.
Note
If the lock screen background was previously set by a different app and you call GetImageUri, an UnauthorizedException will be thrown.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8 |
Namespace |
Windows.Phone.System.UserProfile Windows::Phone::System::UserProfile [C++] |
Metadata |
Windows.WinMD |
See also
LockScreen