Gets the account picture for the user.
Syntax
var iStorageFile = Windows.System.UserProfile.UserInformation.getAccountPicture(kind);
Parameters
- kind
-
Type: AccountPictureKind
An enumeration that you can use to determine what type of image you want (small, large, and so on).
Return value
Type: IStorageFile
An object that contains the image.
Remarks
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.
To see how to use this method, check out our code sample.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012