共用方式為


UserInformation.SetAccountPictureFromStreamAsync(IRandomAccessStream) 方法

定義

使用 IRandomAccessStream 物件設定使用者帳戶的圖片。

重要

Windows 10或更新版本不支援UserInformation類別。 請改用 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

映像。

傳回

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

屬性

備註

重要

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

適用於

另請參閱