AuthenticationBase<T>.Logout Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Logs out an authenticated user.
Namespace: System.ServiceModel.DomainServices.Server.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Function Logout As T
'Usage
Dim instance As AuthenticationBase
Dim returnValue As T
returnValue = instance.Logout()
public T Logout()
public:
virtual T Logout() sealed
abstract Logout : unit -> 'T
override Logout : unit -> 'T
public final function Logout() : T
Return Value
Type: T
A single, default user.
Implements
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The ASP.NET authentication mode is not AuthenticationMode.Forms. |
Remarks
By default, this method can only be used for forms authentication and leverages ASP.NET Forms authentication.
See Also
Reference
System.ServiceModel.DomainServices.Server.ApplicationServices Namespace