Export (0) Print
Expand All

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)

public override ICollection<OAuthAccountData> GetAccountsForUser(
	string userName
)

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:
© 2014 Microsoft