UserInformation.SetAccountPicturesAsync(IStorageFile, IStorageFile, IStorageFile) UserInformation.SetAccountPicturesAsync(IStorageFile, IStorageFile, IStorageFile) UserInformation.SetAccountPicturesAsync(IStorageFile, IStorageFile, IStorageFile) UserInformation.SetAccountPicturesAsync(IStorageFile, IStorageFile, IStorageFile) UserInformation.SetAccountPicturesAsync(IStorageFile, IStorageFile, IStorageFile) Method

Definition

Sets the pictures for the user's account using an IStorageFile object. Supports adding a small image, large image, and video.

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

public : static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video)
static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video) const;
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video)
Public Shared Function SetAccountPicturesAsync(smallImage As IStorageFile, largeImage As IStorageFile, video As IStorageFile) As IAsyncOperation(Of SetAccountPictureResult)
Windows.System.UserProfile.UserInformation.setAccountPicturesAsync(smallImage, largeImage, video).done( /* Your success and error handlers */ );
Parameters
smallImage
IStorageFile IStorageFile IStorageFile

A small version of the image.

largeImage
IStorageFile IStorageFile IStorageFile

A large version of the image.

Returns

Remarks

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

See Also