Share via


OAuthWebSecurity.RegisterGoogleClient Method (String)

Registers a Google client.

Namespace:  Microsoft.Web.WebPages.OAuth
Assembly:  Microsoft.Web.WebPages.OAuth (in Microsoft.Web.WebPages.OAuth.dll)

Syntax

'Declaration
Public Shared Sub RegisterGoogleClient ( _
    displayName As String _
)
'Usage
Dim displayName As String 

OAuthWebSecurity.RegisterGoogleClient(displayName)
public static void RegisterGoogleClient(
    string displayName
)
public:
static void RegisterGoogleClient(
    String^ displayName
)
static member RegisterGoogleClient : 
        displayName:string -> unit
public static function RegisterGoogleClient(
    displayName : String
)

Parameters

Remarks

For an example of using the OAuthWebSecurity class, see Using OAuth Providers with MVC 4.

See Also

Reference

OAuthWebSecurity Class

RegisterGoogleClient Overload

Microsoft.Web.WebPages.OAuth Namespace