OnlineIdAuthenticator.AuthenticatedSafeCustomerId 속성

정의

앱에 대해 성공적으로 인증된 사용자의 ID를 반환합니다.

참고

Windows 10 이상용으로 개발하는 경우 Windows.Security.Authentication.Web.Core API를 대신 사용합니다. 자세한 내용은 웹 계정 관리자를 참조하세요.

public:
 property Platform::String ^ AuthenticatedSafeCustomerId { Platform::String ^ get(); };
winrt::hstring AuthenticatedSafeCustomerId();
public string AuthenticatedSafeCustomerId { get; }
var string = onlineIdAuthenticator.authenticatedSafeCustomerId;
Public ReadOnly Property AuthenticatedSafeCustomerId As String

속성 값

String

Platform::String

winrt::hstring

앱에 대해 성공적으로 인증된 사용자의 ID입니다.

예제

string authenticatedSafeCustomerId = onlineIdAuthenticator.authenticatedSafeCustomerId;
if (authenticatedSafeCustomerId != string.Empty)
{
    // use
}

설명

이 속성은 UserIdentity.SafeCustomerId 속성과 동일한 사용자 ID를 반환합니다.

사용자가 앱에 대해 성공적으로 인증되지 않은 경우 이 속성 값은 비어 있습니다.

앱이 사용자의 ID를 기반으로 로컬 데이터를 저장하는 경우 인증된SafeCustomerId 속성을 검사 앱에 대한 마지막 인증 이후 변경 내용이 없는지 확인해야 합니다. 사용자 ID 및 관련 티켓을 가져오기 전에 앱이 시작되거나 활성화될 때 이 속성을 확인합니다.

적용 대상