SetAccountPictureResult 枚举

定义

尝试为用户帐户设置映像时返回的结果。

调用 SetAccountPictureAsyncSetAccountPictureFromStreamAsync、SetAccountPicturesAsyncSetAccountPicturesFromStreamAsync 时,将返回此对象。

public enum class SetAccountPictureResult
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.UserProfile.UserProfileContract, 65536)]
enum class SetAccountPictureResult
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.UserProfile.UserProfileContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
enum class SetAccountPictureResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.UserProfile.UserProfileContract), 65536)]
public enum SetAccountPictureResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.UserProfile.UserProfileContract), 65536)]
[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 enum SetAccountPictureResult
var value = Windows.System.UserProfile.SetAccountPictureResult.success
Public Enum SetAccountPictureResult
继承
SetAccountPictureResult
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
Windows Mobile Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.System.UserProfile.UserProfileContract (在 v1.0 中引入)

字段

ChangeDisabled 1

指示未设置图片,因为 AccountPictureChangeEnabled 属性已禁用,或者用户取消了同意提示。

Failure 5

指示未设置图片或视频。

FileSizeError 4

指示由于文件大小过大而未设置图片。

LargeOrDynamicError 2

指示由于图片太大而未设置图片。

Success 0

指示已成功设置图片。

VideoFrameSizeError 3

指示视频未设置,因为其帧大小太大。

适用于