共用方式為


UserInformation.SetAccountPicturesAsync 方法

定義

使用 IStorageFile 物件設定使用者帳戶的圖片。 支援新增小型影像、大型影像和視訊。

重要

Windows 10或更新版本不支援UserInformation類別。 請改用 User 類別。 請參閱 UserInformation 類別檔中的。

public:
 static IAsyncOperation<SetAccountPictureResult> ^ SetAccountPicturesAsync(IStorageFile ^ smallImage, IStorageFile ^ largeImage, IStorageFile ^ video);
 static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile const& smallImage, IStorageFile const& largeImage, IStorageFile 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> SetAccountPicturesAsync(IStorageFile const& smallImage, IStorageFile const& largeImage, IStorageFile const& video);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile 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> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video);
function setAccountPicturesAsync(smallImage, largeImage, video)
Public Shared Function SetAccountPicturesAsync (smallImage As IStorageFile, largeImage As IStorageFile, video As IStorageFile) As IAsyncOperation(Of SetAccountPictureResult)

參數

smallImage
IStorageFile

映射的小型版本。

largeImage
IStorageFile

大型版本的映射。

video
IStorageFile

影片。

傳回

值,表示作業成功或失敗。

屬性

備註

重要

Windows 10或更新版本不支援UserInformation類別。 請改用 User 類別。 請參閱 UserInformation 類別檔中的。

適用於

另請參閱