User.GetPictureAsync(UserPictureSize) 方法

定义

异步获取用户的图片。

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)

参数

desiredSize
UserPictureSize

要返回的用户图片的所需大小。

返回

此方法完成后,它将返回用户的图片;如果没有,则返回 null。

属性

Windows 要求

应用功能
userAccountInformation

适用于

另请参阅