共用方式為


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 類別檔中的。

適用於

另請參閱