Dela via


WebAccount.GetPictureAsync(WebAccountPictureSize) Method

Definition

Gets the web account's picture asynchronously.

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

Parameters

desizedSize
WebAccountPictureSize

The desired size of the web account picture.

Returns

When this method completes, it returns the web account's picture.

Attributes

Remarks

Important

The word "desired" is misspelled in this method's parameter name.

This method should be called on the WebAccount returned in WebTokenRequestResult. Add (UserPictureEnabled, True) to the WebTokenRequest.Properties while creating WebTokenRequest to acquire a token. Otherwise, the call may return a default profile picture.

Applies to