System.Web.Security.ActiveDirectoryMembershipProvider.GetUser Method

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

Syntax

public override MembershipUser GetUser (object providerUserKey, bool userIsOnline)

Parameters

providerUserKey
The unique identifier for the user.
userIsOnline
The ActiveDirectoryMembershipProvider.GetUser(object, 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 providerUserKey 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 search looks for a user instance where the objectSID attribute matches the providerUserKey parameter.

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.

Requirements

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