Delen via


User.GetPictureAsync(UserPictureSize) Method

Definition

Gets a user's picture asynchronously.

public:
 virtual IAsyncOperation<IRandomAccessStreamReference ^> ^ GetPictureAsync(UserPictureSize desiredSize) = GetPictureAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IRandomAccessStreamReference> GetPictureAsync(UserPictureSize const& desiredSize);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IRandomAccessStreamReference> GetPictureAsync(UserPictureSize desiredSize);
function getPictureAsync(desiredSize)
Public Function GetPictureAsync (desiredSize As UserPictureSize) As IAsyncOperation(Of IRandomAccessStreamReference)

Parameters

desiredSize
UserPictureSize

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

Returns

When this method completes, it returns the user's picture or null if there is none.

Attributes

Windows requirements

App capabilities
userAccountInformation

Applies to

See also