System.Web.Security.ActiveDirectoryMembershipProvider.GetUser Method

Gets the membership user information associated with the specified user name.

Syntax

public override MembershipUser GetUser (string username, bool userIsOnline)

Parameters

username
The name of the user to get information for.
userIsOnline
The ActiveDirectoryMembershipProvider.GetUser(string, bool) method ignores this parameter.

Returns

A System.Web.Security.MembershipUser instance representing the user specified. If no user is found in the Active Directory data store for the specified username value, null is returned.

Remarks

The ActiveDirectoryMembershipProvider.GetUser(string, bool) method is called by the System.Web.Security.Membership class to retrieve information on the specified user from the Active Directory data store.

The provider uses a subtree search starting at the search point specified in the connection string. See the System.Web.Security.ActiveDirectoryMembershipProvider class topic for more information about connection strings.

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

Requirements

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