Delen via


UserInformation.SetAccountPicturesAsync 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 const& smallImage, IStorageFile const& largeImage, IStorageFile const& video);
/// [Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
 static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile const& smallImage, IStorageFile const& largeImage, IStorageFile const& video);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video);
[Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video);
function setAccountPicturesAsync(smallImage, largeImage, video)
Public Shared Function SetAccountPicturesAsync (smallImage As IStorageFile, largeImage As IStorageFile, video As IStorageFile) As IAsyncOperation(Of SetAccountPictureResult)

Parameters

smallImage
IStorageFile

A small version of the image.

largeImage
IStorageFile

A large version of the image.

video
IStorageFile

A video.

Returns

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

Attributes

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.

Applies to

See also