System.Web.Security.Membership.FindUsersByName Method

Gets a collection of membership users where the user name contains the specified user name to match.

Syntax

public static MembershipUserCollection FindUsersByName (string nameToMatch)

Parameters

nameToMatch
Documentation for this section has not yet been entered.

Returns

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

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

Remarks

SqlMembershipProvider.FindUsersByName(string, int, int, Int32@) returns a list of membership users where the user name matches the supplied usernameToMatch for the configured applicationName.

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

Leading and trailing spaces are trimmed from all parameter values.

Requirements

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