UserInformation.SetAccountPicturesFromStreamsAsync(IRandomAccessStream, IRandomAccessStream, IRandomAccessStream) UserInformation.SetAccountPicturesFromStreamsAsync(IRandomAccessStream, IRandomAccessStream, IRandomAccessStream) UserInformation.SetAccountPicturesFromStreamsAsync(IRandomAccessStream, IRandomAccessStream, IRandomAccessStream) UserInformation.SetAccountPicturesFromStreamsAsync(IRandomAccessStream, IRandomAccessStream, IRandomAccessStream) UserInformation.SetAccountPicturesFromStreamsAsync(IRandomAccessStream, IRandomAccessStream, IRandomAccessStream) Method

Definition

Sets the pictures for the user's account using an IRandomAccessStream 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> SetAccountPicturesFromStreamsAsync(IRandomAccessStream smallImage, IRandomAccessStream largeImage, IRandomAccessStream video)
static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesFromStreamsAsync(IRandomAccessStream smallImage, IRandomAccessStream largeImage, IRandomAccessStream video) const;
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesFromStreamsAsync(IRandomAccessStream smallImage, IRandomAccessStream largeImage, IRandomAccessStream video)
Public Shared Function SetAccountPicturesFromStreamsAsync(smallImage As IRandomAccessStream, largeImage As IRandomAccessStream, video As IRandomAccessStream) As IAsyncOperation(Of SetAccountPictureResult)
Windows.System.UserProfile.UserInformation.setAccountPicturesFromStreamsAsync(smallImage, largeImage, video).done( /* Your success and error handlers */ );

Parameters

smallImage
IRandomAccessStream IRandomAccessStream IRandomAccessStream

A small version of the image.

largeImage
IRandomAccessStream IRandomAccessStream IRandomAccessStream

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