UserInformation.SetAccountPictureFromStreamAsync(IRandomAccessStream) メソッド

定義

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

重要

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

public:
 static IAsyncOperation<SetAccountPictureResult> ^ SetAccountPictureFromStreamAsync(IRandomAccessStream ^ image);
 static IAsyncOperation<SetAccountPictureResult> SetAccountPictureFromStreamAsync(IRandomAccessStream 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> SetAccountPictureFromStreamAsync(IRandomAccessStream const& image);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPictureFromStreamAsync(IRandomAccessStream 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> SetAccountPictureFromStreamAsync(IRandomAccessStream image);
function setAccountPictureFromStreamAsync(image)
Public Shared Function SetAccountPictureFromStreamAsync (image As IRandomAccessStream) As IAsyncOperation(Of SetAccountPictureResult)

パラメーター

image
IRandomAccessStream

イメージ。

戻り値

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

属性

注釈

重要

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

適用対象

こちらもご覧ください