UserInformation.SetAccountPicturesFromStreamsAsync 方法

定义

使用 IRandomAccessStream 对象设置用户帐户的图片。 支持添加小图像、大图像和视频。

重要

Windows 10 或更高版本不支持 UserInformation 类。 请改用 User 类。 请参阅 UserInformation 类文档中的“备注”。

public:
 static IAsyncOperation<SetAccountPictureResult> ^ SetAccountPicturesFromStreamsAsync(IRandomAccessStream ^ smallImage, IRandomAccessStream ^ largeImage, IRandomAccessStream ^ video);
 static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesFromStreamsAsync(IRandomAccessStream const& smallImage, IRandomAccessStream const& largeImage, IRandomAccessStream const& video);
/// [Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
 static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesFromStreamsAsync(IRandomAccessStream const& smallImage, IRandomAccessStream const& largeImage, IRandomAccessStream const& video);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesFromStreamsAsync(IRandomAccessStream smallImage, IRandomAccessStream largeImage, IRandomAccessStream video);
[Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesFromStreamsAsync(IRandomAccessStream smallImage, IRandomAccessStream largeImage, IRandomAccessStream video);
function setAccountPicturesFromStreamsAsync(smallImage, largeImage, video)
Public Shared Function SetAccountPicturesFromStreamsAsync (smallImage As IRandomAccessStream, largeImage As IRandomAccessStream, video As IRandomAccessStream) As IAsyncOperation(Of SetAccountPictureResult)

参数

smallImage
IRandomAccessStream

映像的较小版本。

largeImage
IRandomAccessStream

映像的大版本。

video
IRandomAccessStream

视频。

返回

一个 指示操作成功或失败的 值。

属性

注解

重要

Windows 10 或更高版本不支持 UserInformation 类。 请改用 User 类。 请参阅 UserInformation 类文档中的“备注”。

适用于

另请参阅