This documentation is archived and is not being maintained.

ClientFormsIdentity::AuthenticationType Property

Gets the type of authentication that is used to authenticate the user.

Namespace:  System.Web.ClientServices
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
virtual property String^ AuthenticationType {
	String^ get () sealed;
}

Property Value

Type: System::String
The type of authentication that is used to authenticate the user.

Implements

IIdentity::AuthenticationType

You will typically access a ClientFormsIdentity object as an IIdentity reference to avoid a direct dependency on this class. You can determine whether a user is authenticated by checking the IIdentity::IsAuthenticated property of the identity. However, the user may be authenticated for Windows, but not for client application services. To determine whether the user is authenticated for client application services, you should also confirm that the IIdentity::AuthenticationType property value is "ClientForms". For more information, see the ClientFormsIdentity class overview.

The following example code demonstrates how to use this property through an IIdentity reference to determine whether a user is currently authenticated for client application services. This example assumes that the application is in the default configuration where users are not required to log in again when the authentication cookie expires. Otherwise, the WebException might indicate that the user login has expired. For more information, see How to: Configure Client Application Services.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: