SqlMembershipProvider Methods


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

System_CAPS_pubmethodChangePassword(String, String, String)
System_CAPS_pubmethodChangePasswordQuestionAndAnswer(String, String, String, String)

Updates the password question and answer for a user in the SQL Server membership database.(Overrides MembershipProvider.ChangePasswordQuestionAndAnswer(String, String, String, String).)

System_CAPS_pubmethodCreateUser(String, String, String, String, String, Boolean, Object, MembershipCreateStatus)

Decrypts an encrypted password.(Inherited from MembershipProvider.)

System_CAPS_pubmethodDeleteUser(String, Boolean)

Removes a user's membership information from the SQL Server membership database.(Overrides MembershipProvider.DeleteUser(String, Boolean).)


Encrypts a password.(Inherited from MembershipProvider.)

System_CAPS_protmethodEncryptPassword(Byte[], MembershipPasswordCompatibilityMode)

Encrypts the specified password using the specified password-compatibility mode.(Inherited from MembershipProvider.)


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFindUsersByEmail(String, Int32, Int32, Int32)

Returns a collection of membership users for which the e-mail address field contains the specified e-mail address.(Overrides MembershipProvider.FindUsersByEmail(String, Int32, Int32, Int32).)

System_CAPS_pubmethodFindUsersByName(String, Int32, Int32, Int32)

Gets a collection of membership users where the user name contains the specified user name to match.(Overrides MembershipProvider.FindUsersByName(String, Int32, Int32, Int32).)


Generates a random password that is at least 14 characters long.

System_CAPS_pubmethodGetAllUsers(Int32, Int32, Int32)

Gets a collection of all the users in the SQL Server membership database.(Overrides MembershipProvider.GetAllUsers(Int32, Int32, Int32).)


Serves as the default hash function. (Inherited from Object.)


Returns the number of users currently accessing the application.(Overrides MembershipProvider.GetNumberOfUsersOnline().)

System_CAPS_pubmethodGetPassword(String, String)

Returns the password for the specified user name from the SQL Server membership database.(Overrides MembershipProvider.GetPassword(String, String).)


Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetUser(Object, Boolean)

Gets the information from the data source for the membership user associated with the specified unique identifier and updates the last activity date/time stamp for the user, if specified.(Overrides MembershipProvider.GetUser(Object, Boolean).)

System_CAPS_pubmethodGetUser(String, Boolean)

Returns information from the SQL Server membership database for a user and provides an option to update the last activity date/time stamp for the user.(Overrides MembershipProvider.GetUser(String, Boolean).)


Gets the user name associated with the specified e-mail address.(Overrides MembershipProvider.GetUserNameByEmail(String).)

System_CAPS_pubmethodInitialize(String, NameValueCollection)

Initializes the SQL Server membership provider with the property values specified in the ASP.NET application's configuration file. This method is not intended to be used directly from your code.(Overrides ProviderBase.Initialize(String, NameValueCollection).)


Creates a shallow copy of the current Object.(Inherited from Object.)


Raises the ValidatingPassword event if an event handler has been defined.(Inherited from MembershipProvider.)

System_CAPS_pubmethodResetPassword(String, String)

Resets a user's password to a new, automatically generated password.(Overrides MembershipProvider.ResetPassword(String, String).)


Returns a string that represents the current object.(Inherited from Object.)


Clears the user's locked-out status so that the membership user can be validated.(Overrides MembershipProvider.UnlockUser(String).)


Updates information about a user in the SQL Server membership database.(Overrides MembershipProvider.UpdateUser(MembershipUser).)

System_CAPS_pubmethodValidateUser(String, String)

Verifies that the specified user name and password exist in the SQL Server membership database.(Overrides MembershipProvider.ValidateUser(String, String).)

Return to top