Skip to main content
UserInformation.SetAccountPicturesFromStreamsAsync | setAccountPicturesFromStreamsAsync method

Applies to Windows and Windows Phone

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

Syntax


Windows.System.UserProfile.UserInformation.setAccountPicturesFromStreamsAsync(smallImage, largeImage, video).done( /* Your success and error handlers */ );

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)

public:
static IAsyncOperation<SetAccountPictureResult>^ SetAccountPicturesFromStreamsAsync(
  IRandomAccessStream^ smallImage, 
  IRandomAccessStream^ largeImage, 
  IRandomAccessStream^ video
)

Parameters

smallImage

Type: IRandomAccessStream

A small version of the image.

largeImage

Type: IRandomAccessStream

A large version of the image.

video

Type: IRandomAccessStream

A video.

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

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