System.Web.Security.Membership.FindUsersByEmail Method

Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.

Syntax

public static MembershipUserCollection FindUsersByEmail (string emailToMatch)

Parameters

emailToMatch
The e-mail address to search for.

Returns

A System.Web.Security.MembershipUserCollection that contains all users that match the emailToMatch parameter.

Leading and trailing spaces are trimmed from the emailToMatch parameter value.

Remarks

Membership.FindUsersByEmail(string) returns a list of membership users where the e-mail address matches the supplied emailToMatch for the configured applicationName.

The System.Web.Security.SqlMembershipProvider performs its search using a LIKE clause against the emailToMatch parameter. Any wildcards that are supported by SQL Server in LIKE clauses can be used in the emailToMatch parameter value.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0