UserInformation.SetAccountPictureAsync(IStorageFile) メソッド

定義

IStorageFile オブジェクトを使用して、ユーザーのアカウントの画像を設定します。

重要

UserInformation クラスは、Windows 10以降ではサポートされていません。 代わりに User クラスを使用してください。 UserInformation クラスのドキュメントの「解説」を参照してください。

public:
 static IAsyncOperation<SetAccountPictureResult> ^ SetAccountPictureAsync(IStorageFile ^ image);
 static IAsyncOperation<SetAccountPictureResult> SetAccountPictureAsync(IStorageFile const& image);
/// [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> SetAccountPictureAsync(IStorageFile const& image);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPictureAsync(IStorageFile image);
[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> SetAccountPictureAsync(IStorageFile image);
function setAccountPictureAsync(image)
Public Shared Function SetAccountPictureAsync (image As IStorageFile) As IAsyncOperation(Of SetAccountPictureResult)

パラメーター

image
IStorageFile

イメージを含むファイル。

戻り値

操作の成功または失敗を示す値。

属性

注釈

重要

UserInformation クラスは、Windows 10以降ではサポートされていません。 代わりに User クラスを使用してください。 UserInformation クラスのドキュメントの「解説」を参照してください。

適用対象

こちらもご覧ください