SimpleMembershipProvider.GetAccountsForUser(String) Method

Definition

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

public override System.Collections.Generic.ICollection<WebMatrix.WebData.OAuthAccountData> GetAccountsForUser (string userName);
override this.GetAccountsForUser : string -> System.Collections.Generic.ICollection<WebMatrix.WebData.OAuthAccountData>
Public Overrides Function GetAccountsForUser (userName As String) As ICollection(Of OAuthAccountData)

Parameters

userName
String

The user name.

Returns

A list of all OAuth membership accounts that are associated with the specified user name.

Exceptions

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

Applies to