OpenAuthManager.RequestAuthentication Method

.NET Framework 4

Request authentication from the provider specified by redirecting the user to the service's login page.

Namespace:  Microsoft.AspNet.Membership.OpenAuth
Assembly:  Microsoft.AspNet.Membership.OpenAuth (in Microsoft.AspNet.Membership.OpenAuth.dll)

Syntax

'Declaration
Public Overridable Sub RequestAuthentication ( _
    context As HttpContextBase, _
    providerName As String, _
    returnUrl As String _
)
'Usage
Dim instance As OpenAuthManager 
Dim context As HttpContextBase 
Dim providerName As String 
Dim returnUrl As String

instance.RequestAuthentication(context, _
    providerName, returnUrl)
public virtual void RequestAuthentication(
    HttpContextBase context,
    string providerName,
    string returnUrl
)
public:
virtual void RequestAuthentication(
    HttpContextBase^ context, 
    String^ providerName, 
    String^ returnUrl
)
abstract RequestAuthentication : 
        context:HttpContextBase * 
        providerName:string * 
        returnUrl:string -> unit  
override RequestAuthentication : 
        context:HttpContextBase * 
        providerName:string * 
        returnUrl:string -> unit
public function RequestAuthentication(
    context : HttpContextBase, 
    providerName : String, 
    returnUrl : String
)

Parameters

  • providerName
    Type: System.String
    The name of the authentication provider.

See Also

Reference

OpenAuthManager Class

Microsoft.AspNet.Membership.OpenAuth Namespace