MembershipUserCollection.Item Property (String)

 

Gets the membership user in the collection referenced by the specified user name.

Namespace:   System.Web.Security
Assembly:  System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)

member Item : 
        name:string -> MembershipUser with get

Parameters

name
Type: System.String

The UserName of the MembershipUser to retrieve from the collection.

Property Value

Type: System.Web.Security.MembershipUser

A MembershipUser object representing the user specified by name.

The MembershipUser object returned by Item property contains a snapshot of user information in the membership data store. That is, changes to the membership user information in the MembershipUserCollection are not reflected in the membership data store. To modify membership user information in the membership data store, use the UpdateUser, CreateUser, and DeleteUser methods.

The following code example displays all membership user names in a ListBox and shows specific membership information for the selected user name.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: