SimpleMembershipProvider.GetAccountsForUser Method

Returns all OAuth membership accounts that are associated with the specified user name.

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

abstract GetAccountsForUser : 
        userName:string -> ICollection<OAuthAccountData> 
override GetAccountsForUser : 
        userName:string -> ICollection<OAuthAccountData> 

Parameters

userName
Type: System.String
The user name.

Return Value

Type: System.Collections.Generic.ICollection(OAuthAccountData)
A list of all OAuth membership accounts that are associated with the specified user name.

ExceptionCondition
InvalidOperationException

The SimpleMembershipProvider class was not initialized using a call to the InitializeDatabaseConnection() method.

Show: