Share via


AuthenticationClientManagerExtensions.AddTwitter Method (AuthenticationClientManager, String, String)

.NET Framework 4

Adds support for logging in with a Twitter account

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub AddTwitter ( _
    clients As AuthenticationClientManager, _
    consumerKey As String, _
    consumerSecret As String _
)
'Usage
Dim clients As AuthenticationClientManager 
Dim consumerKey As String 
Dim consumerSecret As String 

clients.AddTwitter(consumerKey, consumerSecret)
public static void AddTwitter(
    this AuthenticationClientManager clients,
    string consumerKey,
    string consumerSecret
)
[ExtensionAttribute]
public:
static void AddTwitter(
    AuthenticationClientManager^ clients, 
    String^ consumerKey, 
    String^ consumerSecret
)
static member AddTwitter : 
        clients:AuthenticationClientManager * 
        consumerKey:string * 
        consumerSecret:string -> unit
public static function AddTwitter(
    clients : AuthenticationClientManager, 
    consumerKey : String, 
    consumerSecret : String
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AuthenticationClientManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

AuthenticationClientManagerExtensions Class

AddTwitter Overload

Microsoft.AspNet.Membership.OpenAuth Namespace