Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.