Share via


ExtendedMembershipProvider.GetAccountsForUser Method

When overridden in a derived class, returns all OAuth membership accounts associated with the specified user name.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

Syntax

'Declaration
Public MustOverride Function GetAccountsForUser ( _
    userName As String _
) As ICollection(Of OAuthAccountData)
'Usage
Dim instance As ExtendedMembershipProvider 
Dim userName As String 
Dim returnValue As ICollection(Of OAuthAccountData)

returnValue = instance.GetAccountsForUser(userName)
public abstract ICollection<OAuthAccountData> GetAccountsForUser(
    string userName
)
public:
virtual ICollection<OAuthAccountData^>^ GetAccountsForUser(
    String^ userName
) abstract
abstract GetAccountsForUser : 
        userName:string -> ICollection<OAuthAccountData> 
public abstract function GetAccountsForUser(
    userName : String
) : ICollection<OAuthAccountData>

Parameters

Return Value

Type: System.Collections.Generic.ICollection<OAuthAccountData>
A list of all OAuth membership accounts associated with the specified user name.

See Also

Reference

ExtendedMembershipProvider Class

WebMatrix.WebData Namespace