SetAccountPictureResult SetAccountPictureResult SetAccountPictureResult SetAccountPictureResult Enum


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
public enum SetAccountPictureResult
Public Enum SetAccountPictureResult
var value = Windows.System.UserProfile.SetAccountPictureResult.changeDisabled;
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0) Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.System.UserProfile.UserProfileContract (introduced v1)


ChangeDisabled ChangeDisabled ChangeDisabled ChangeDisabled

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

Failure Failure Failure Failure

Indicates the picture or video was not set.

FileSizeError FileSizeError FileSizeError FileSizeError

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

LargeOrDynamicError LargeOrDynamicError LargeOrDynamicError LargeOrDynamicError

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

Success Success Success Success

Indicates the picture was successfully set.

VideoFrameSizeError VideoFrameSizeError VideoFrameSizeError VideoFrameSizeError

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