Dela via


SetAccountPictureResult Enum

Definition

A result that is returned when you try to set the image for a user account.

This object is returned when you call SetAccountPictureAsync, SetAccountPictureFromStreamAsync, SetAccountPicturesAsync, and SetAccountPicturesFromStreamAsync.

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
Inheritance
SetAccountPictureResult
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.System.UserProfile.UserProfileContract (introduced in v1.0)

Fields

Name Value Description
Success 0

Indicates the picture was successfully set.

ChangeDisabled 1

Indicates that the picture was not set because the AccountPictureChangeEnabled property is disabled, or the user cancelled the consent prompt.

LargeOrDynamicError 2

Indicates that the picture was not set because the picture was too large.

VideoFrameSizeError 3

Indicates that the video was not set because of its frame size was too large.

FileSizeError 4

Indicates the picture was not set because the file size was too large.

Failure 5

Indicates the picture or video was not set.

Applies to