UserInformation.SetAccountPictureAsync(IStorageFile) UserInformation.SetAccountPictureAsync(IStorageFile) UserInformation.SetAccountPictureAsync(IStorageFile) UserInformation.SetAccountPictureAsync(IStorageFile) UserInformation.SetAccountPictureAsync(IStorageFile) Method

Definition

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

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> SetAccountPictureAsync(IStorageFile image)
static IAsyncOperation<SetAccountPictureResult> SetAccountPictureAsync(IStorageFile image) const;
public static IAsyncOperation<SetAccountPictureResult> SetAccountPictureAsync(IStorageFile image)
Public Shared Function SetAccountPictureAsync(image As IStorageFile) As IAsyncOperation(Of SetAccountPictureResult)
Windows.System.UserProfile.UserInformation.setAccountPictureAsync(image).done( /* Your success and error handlers */ );

Parameters

image
IStorageFile IStorageFile IStorageFile

A file that contains 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