WebAccount 클래스

정의

웹 계정 공급자의 계정을 식별합니다.

public ref class WebAccount sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Credentials.IWebAccountFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WebAccount final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Credentials.IWebAccountFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WebAccount final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Credentials.IWebAccountFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WebAccount
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Credentials.IWebAccountFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WebAccount
function WebAccount(webAccountProvider, userName, state)
Public NotInheritable Class WebAccount
상속
Object Platform::Object IInspectable WebAccount
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

생성자

WebAccount(WebAccountProvider, String, WebAccountState)

WebAccount 클래스의 instance 만듭니다.

속성

Id

웹 계정의 ID를 가져옵니다.

Properties

웹 계정의 속성을 가져옵니다.

State

웹 계정의 연결된 상태를 가져옵니다.

UserName

웹 계정의 사용자 이름을 가져옵니다.

WebAccountProvider

계정에 대한 웹 인증 공급자를 가져옵니다.

메서드

GetPictureAsync(WebAccountPictureSize)

웹 계정의 그림을 비동기적으로 가져옵니다.

SignOutAsync()

웹 계정을 비동기적으로 로그아웃합니다. 이렇게 하면 계정과 연결된 캐시된 토큰이 모두 지워지고 공급자에게 이 앱의 계정과 연결된 토큰을 무효화하도록 지시합니다.

SignOutAsync(String)

웹 계정을 비동기적으로 로그아웃합니다. 이렇게 하면 계정과 연결된 캐시된 토큰이 모두 지워지고 공급자에게 이 앱의 계정과 연결된 토큰을 무효화하도록 지시합니다.

적용 대상

추가 정보