WebAccount.GetPictureAsync(WebAccountPictureSize) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.