UserInformation.SetAccountPictureAsync | setAccountPictureAsync method

Sets the picture for the user's account using an IStorageFile object.

Sets the picture for the user account.

Syntax


Windows.System.UserProfile.UserInformation.setAccountPictureAsync(image).done( /* Your success and error handlers */ );

Parameters

image

Type: IStorageFile

A file that contains the image.

Return value

Type: IAsyncOperation<SetAccountPictureResult>

A value that indicates the success or failure of the operation.

Remarks

To see how to use this method, check out our code sample.

Requirements (device family)

Device family

Desktop
Mobile

API contract

Windows.System.UserProfile.UserProfileContract, introduced version 1.0

Namespace

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

Metadata

Windows.System.UserProfile.UserProfileContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

UserInformation

 

 

Show:
© 2015 Microsoft