User.GetPictureAsync(UserPictureSize) User.GetPictureAsync(UserPictureSize) User.GetPictureAsync(UserPictureSize) User.GetPictureAsync(UserPictureSize) User.GetPictureAsync(UserPictureSize) Method

Definition

Gets a user's picture asynchronously.

public : IAsyncOperation<IRandomAccessStreamReference> GetPictureAsync(UserPictureSize desiredSize)
IAsyncOperation<IRandomAccessStreamReference> GetPictureAsync(UserPictureSize desiredSize) const;
public IAsyncOperation<IRandomAccessStreamReference> GetPictureAsync(UserPictureSize desiredSize)
Public Function GetPictureAsync(desiredSize As UserPictureSize) As IAsyncOperation(Of IRandomAccessStreamReference)
Windows.System.User.getPictureAsync(desiredSize).done( /* Your success and error handlers */ );

Parameters

desiredSize
UserPictureSize UserPictureSize UserPictureSize

The desired size of the user's picture to return.

Returns

Additional features and requirements

Capabilities
userAccountInformation

See also