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:
virtual ICollection<OAuthAccountData^>^ GetAccountsForUser(
	String^ userName
) override

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: