UserInformation.GetAccountPicture(AccountPictureKind) UserInformation.GetAccountPicture(AccountPictureKind) UserInformation.GetAccountPicture(AccountPictureKind) UserInformation.GetAccountPicture(AccountPictureKind) UserInformation.GetAccountPicture(AccountPictureKind) Method

Definition

Gets the account picture for the user.

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

public : static IStorageFile GetAccountPicture(AccountPictureKind kind)
static IStorageFile GetAccountPicture(AccountPictureKind kind) const;
public static IStorageFile GetAccountPicture(AccountPictureKind kind)
Public Shared Function GetAccountPicture(kind As AccountPictureKind) As IStorageFile
var iStorageFile = Windows.System.UserProfile.UserInformation.getAccountPicture(kind);
Parameters
kind
AccountPictureKind AccountPictureKind AccountPictureKind

An enumeration that you can use to determine what type of image you want (small, large, and so on).

Returns

An object that contains the image.

Remarks

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

Access to the account picture can be blocked by privacy settings (for example, if the UserInformation::NameAccessAllowed property is false). If access is blocked, this method returns a null value.

This method does not throw an exception.

See Also