AuthenticationService.Logout 메서드 (Boolean)
오류에 대해 예외를 throw할지 여부를 나타내는 지정된 값을 사용하여 서버에서 인증된 사용자를 비동기적으로 로그아웃합니다.
네임스페이스: System.ServiceModel.DomainServices.Client.ApplicationServices
어셈블리: system.servicemodel.domainservices.client.dll의 System.ServiceModel.DomainServices.Client
사용법
‘사용 방법
Dim instance As AuthenticationService
Dim throwOnError As Boolean
Dim returnValue As LogoutOperation
returnValue = instance.Logout(throwOnError)
구문
‘선언
Public Function Logout ( _
throwOnError As Boolean _
) As LogoutOperation
public LogoutOperation Logout (
bool throwOnError
)
public:
LogoutOperation^ Logout (
bool throwOnError
)
public LogoutOperation Logout (
boolean throwOnError
)
public function Logout (
throwOnError : boolean
) : LogoutOperation
매개 변수
- throwOnError
처리되지 않은 오류로 인해 예외가 발생하면 true이고, 그렇지 않으면 false입니다.
반환 값
작업의 결과입니다.
예외
예외 형식 | 조건 |
---|---|
InvalidOperationException | 이 메서드는 다른 비동기 작업이 처리되는 동안 호출됩니다. |
설명
이 메서드는 전체 작업 또는 사용자 상태 없이 작업을 시작합니다. 이 메서드가 정상적으로 반환되는 경우 LoggedOut 이벤트가 발생할 수도 있습니다. 또한 이 작업을 성공적으로 완료하면 User가 업데이트됩니다. 작업 오류를 처리하려면 작업 완료 콜백이나 Completed 이벤트 처리기에서 MarkErrorAsHandled를 호출할 수 있습니다.
스레드 보안
이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 모든 인스턴스 멤버는 스레드로부터 안전하지 않을 수 있습니다.
플랫폼
개발 플랫폼
Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 및 Windows 2000
대상 플랫폼
참고 항목
참조
AuthenticationService 클래스
AuthenticationService 멤버
System.ServiceModel.DomainServices.Client.ApplicationServices 네임스페이스