Share via


UserInformation.GetAccountPicture(AccountPictureKind) 메서드

정의

사용자의 계정 사진을 가져옵니다.

중요

UserInformation 클래스는 Windows 10 이상에서 지원되지 않습니다. 대신 User 클래스를 사용합니다. UserInformation 클래스 설명서의 설명을 참조하세요.

public:
 static IStorageFile ^ GetAccountPicture(AccountPictureKind kind);
 static IStorageFile GetAccountPicture(AccountPictureKind const& kind);
/// [Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
 static IStorageFile GetAccountPicture(AccountPictureKind const& kind);
public static IStorageFile GetAccountPicture(AccountPictureKind kind);
[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 static IStorageFile GetAccountPicture(AccountPictureKind kind);
function getAccountPicture(kind)
Public Shared Function GetAccountPicture (kind As AccountPictureKind) As IStorageFile

매개 변수

kind
AccountPictureKind

원하는 이미지 유형(소형, 대형 등)을 결정하는 데 사용할 수 있는 열거형입니다.

반환

이미지를 포함하는 개체입니다.

특성

설명

중요

UserInformation 클래스는 Windows 10 이상에서 지원되지 않습니다. 대신 User 클래스를 사용합니다. UserInformation 클래스 설명서의 설명을 참조하세요.

계정 그림에 대한 액세스는 개인 정보 설정에 의해 차단될 수 있습니다(예: UserInformation.NameAccessAllowed 속성이 false인 경우). 액세스가 차단되면 이 메서드는 null 값을 반환합니다.

이 메서드는 예외를 throw하지 않습니다.

적용 대상

추가 정보