WebMatrix.WebData
Represents an abstract class that is used to extend the membership system that is provided by the class.
When overridden in a derived class, instantiates a new instance of the class.
Activates a pending membership account.
true if the account is confirmed; otherwise, false.
A confirmation token to pass to the authentication provider.
Activates a pending membership account for the specified user.
true if the account is confirmed; otherwise, false.
The user name.
A confirmation token to pass to the authentication provider.
Creates a new user account using the specified user name and password.
A token that can be sent to the user to confirm the account.
The user name.
The password.
When overridden in a derived class, creates a new user account using the specified user name and password, optionally requiring that the new account must be confirmed before the account is available for use.
A token that can be sent to the user to confirm the account.
The user name.
The password.
(Optional) true to specify that the account must be confirmed; otherwise, false. The default is false.
When overridden in a derived class, creates a new OAuth membership account, or updates an existing OAuth Membership account.
The OAuth or OpenID provider.
The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.
The user name.
Creates a new user profile and a new membership account.
A token that can be sent to the user to confirm the user account.
The user name.
The password.
Creates a new user profile and a new membership account.
A token that can be sent to the user to confirm the user account.
The user name.
The password.
(Optional) true to specify that the user account must be confirmed; otherwise, false. The default is false.
When overridden in a derived class, creates a new user profile and a new membership account.
A token that can be sent to the user to confirm the user account.
The user name.
The password.
(Optional) true to specify that the user account must be confirmed; otherwise, false. The default is false.
(Optional) A dictionary that contains additional user attributes to store in the user profile. The default is null.
When overridden in a derived class, creates a new user profile and a new membership account.
A token that can be sent to the user to confirm the user account.
The user name.
The password.
(Optional) A dictionary that contains additional user attributes to store in the user profile. The default is null.
When overridden in a derived class, deletes the specified membership account.
true if the user account was deleted; otherwise, false.
The user name.
When overridden in a derived class, deletes the OAuth or OpenID account with the specified provider name and provider user ID.
The name of the OAuth or OpenID provider.
The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.
Generates a password reset token that can be sent to a user in email.
A token to send to the user.
The user name.
When overridden in a derived class, generates a password reset token that can be sent to a user in email.
A token to send to the user.
The user name.
(Optional) The time, in minutes, until the password reset token expires. The default is 1440 (24 hours).
When overridden in a derived class, returns all OAuth membership accounts associated with the specified user name.
A list of all OAuth membership accounts associated with the specified user name.
The user name.
When overridden in a derived class, returns the date and time when the specified user account was created.
The date and time the account was created, or if the account creation date is not available.
The user name of the account.
When overridden in a derived class, returns the date and time when an incorrect password was most recently entered for the specified user account.
The date and time when an incorrect password was most recently entered for this user account, or if an incorrect password has not been entered for this user account.
The user name of the account.
When overridden in a derived class, returns the date and time when the password was most recently changed for the specified membership account.
The date and time when the password was more recently changed for membership account, or if the password has never been changed for this user account.
The user name of the account.
When overridden in a derived class, returns the number of times that the password for the specified user account was incorrectly entered since the most recent successful login or since the user account was created.
The count of failed password attempts for the specified user account.
The user name of the account.
When overridden in a derived class, returns the user ID for the specified OAuth or OpenID provider and provider user ID.
The name of the OAuth or OpenID provider.
The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.
When overridden in a derived class, returns an ID for a user based on a password reset token.
The user ID.
The password reset token.
Returns the user name that is associated with the specified user ID.
The user name.
The user ID to get the name for.
When overridden in a derived class, returns a value that indicates whether the user account has been confirmed by the provider.
true if the user is confirmed; otherwise, false.
The user name.
When overridden in a derived class, resets a password after verifying that the specified password reset token is valid.
true if the password was changed; otherwise, false.
A password reset token.
The new password.
Defines key names that override default settings in the <appSettings> section of the Web.config file.
The key to access the default login URL.
The key to access the login URL key.
The key to access the setting that preserves the term "login" instead of overriding it with "logon".
Represents an OAuth or OpenID account.
Initializes a new instance of the class by using the specified OAuth or Open ID provider and provider user ID.
The provider.
The provider user id.
Gets the OAuth or Open ID provider name.
The provider name.
Gets the OAuth or Open ID provider user ID.
The provider user ID.
Provides a registration point for the simple membership pre-application start code.
Registers the simple membership pre-application start code.
Provides support for website membership tasks, such as creating accounts, deleting accounts, and managing passwords.
Initializes a new instance of the class.
Initializes a new instance of the class by using the specified membership provider.
The membership provider to use.
Gets or sets the name of the application.
The name of the application.
Changes the password for the specified membership account.
true if the password is successfully changed; otherwise, false.
The user name.
The old password.
The new password.
Changes the password question and answer for the specified account.
true if the password question and answer are successfully changed; otherwise, false.
The user name.
The new password.
The security question that the user must answer in order to change the password.
The answer to the security question.
Activates a pending membership account.
true if the user account is confirmed; otherwise, false.
A confirmation token to pass to the authentication provider.
The class was not initialized using a call to the method.
Returns .
Creates a new user account by using the specified user name and password.
A token that can be sent to the user to confirm the user account.
The user name.
The password.
(Optional) true to specify that the user account must be confirmed; otherwise, false. The default is false.
is empty.-or- already has a user account.-or- is empty.-or- is longer than 128 characters.-or-A user record that corresponds to does not exist in the table (the user profile table).-or-The database operation failed.
The class was not initialized using a call to the method.
Creates a new OAuth membership account, or updates an existing OAuth Membership account.
The OAuth or OpenID provider.
The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.
The user name.
The class was not initialized using a call to the method.
is empty.-or-A user record that corresponds to does not exist in the table (the user profile table).-or-The database operation failed.
Adds the specified user to the membership database.
A object that is populated with the information for the newly created user account.
The user name for the new user account.
The password for the new user account.
The email address for the new user account.
The security question for the new user account.
The answer to the security question for the new user account.
true to indicate that the user account is approved to be validated; otherwise, false.
The unique identifier from the membership data source for the user account.
When this method returns, contains a enumeration value that indicates whether the user account was created successfully. This parameter is passed uninitiated.
Creates a new user profile and a new membership account.
A token that can be sent to the user to confirm the user account.
The user name.
The password.
(Optional) true to specify that the user account must be confirmed by using the method; otherwise, false. The default is false.
(Optional) A dictionary that contains additional key/value pair attributes that you can add to the data store as default values for new user profile. The key for each entry is the database column, and the value of each entry is the value for the column. The default is null.
The class was not initialized using a call to the method.
A membership account for this user name already exists in the membership database.
Deletes the specified membership account.
true if the user account was deleted; otherwise, false.
The user name.
is null or empty.
The class was not initialized using a call to the method.
Deletes the OAuth or OpenID account with the specified provider name and provider user ID.
The name of the OAuth or OpenID provider.
The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.
The class was not initialized using a call to the method.
is empty.-or-A user record that corresponds to does not exist in the table (the user profile table).-or-The database operation failed.
Deletes the specified user account, and optionally deletes all profile data that is related to that user account.
true if the user account was deleted; otherwise, false.
The user name.
true to delete profile data that is related to the user, or false to retain data that is related to the user.
is null or empty.
Gets a value that indicates whether the membership provider lets users reset their passwords.
true if the membership provider supports password reset; otherwise, false. The default is true.
Gets a value that indicates whether the membership provider lets users retrieve their passwords.
true if the membership provider supports password retrieval; otherwise, false. The default is false.
Returns all of the user accounts whose email address matches the specified email address.
A collection that contains a page of user accounts starting at the page specified by .
The email address to search for.
The zero-based index of the page of results to return.
The size of the page of results to return.
When this method returns, contains the total number of matched user accounts.
Returns all of the user accounts whose name matches the specified user name.
A collection that contains a page of user accounts starting at the page specified by .
The user name to search for.
The zero-based index of the page of results to return.
The size of the page of results to return.
When this method returns, contains the total number of matched users.
Generates a password reset token that can be sent to a user in email.
A token to send to the user.
The user name.
(Optional) The time, in minutes, until the password reset token expires. The default is 1440 (24 hours).
is empty.
The database operation failed.
The class was not initialized using a call to the method.
Returns all OAuth membership accounts that are associated with the specified user name.
A list of all OAuth membership accounts that are associated with the specified user name.
The user name.
The class was not initialized using a call to the method.
Returns all of the user accounts in the data source.
A collection that contains a page of user accounts starting at the page specified by .
The zero-based index of the page of results to return.
The size of the page of results to return.
When this method returns, contains the total number of matched user accounts.
Returns the date and time when the specified user account was created.
The date and time on which the user account was created, or if the user account creation date is not available.
The user name of the account.
The user specified by does not have a user account.
Returns the date and time when an incorrect password was most recently entered for the specified user account.
The date and time when an incorrect password was most recently entered for this user account, or if an incorrect password has not been entered for this user account.
The user name of the account.
Returns the number of users who are currently accessing the application.
The number of users who are currently accessing the application.
Returns the password for the specified user account from the data source.
The password for the specified user account.
The user to retrieve the password for.
The answer for the password security question.
is false.
does not match the security answer for the user account and is true.
Returns the date and time when the password was most recently changed for the specified membership account.
The date and time when the password was more recently changed for this account, or if the password has never been changed for this membership account.
The user name of the account.
The user specified by does not have a membership account.
Returns the number of times that the password for the specified user account was incorrectly entered since the most recent successful login or since the user account was created.
The count of failed password attempts for the specified user account, or -1 if the user specified by does not have a user account.
The user name of the account.
Returns information about the user account using the specified user ID, and optionally updates the timestamp of the most recent activity for the user account.
An object that is populated with the user account information, or null if is not found.
The ID for the user account to get information for. The ID is a value that is stored as an instance.
true to update the last-activity timestamp for the user account, or false to return user account information without updating the timestamp.
Returns information about the user account using the specified user name, and optionally updates the timestamp of the most recent activity for the user account.
An object that is populated with the user account information, or null if is not found.
The name of the user to get information for.
true to update the last-activity timestamp for the user account, or false to return user account information without updating the timestamp.
Returns the ID for a user based on the specified user name.
The user ID.
The user name.
The class was not initialized using a call to the method.
Returns the user ID for the specified OAuth or OpenID provider and provider user ID.
The user ID, or -1 if there is no user ID associated with the OAuth or Open ID provider user ID.
The name of the OAuth or OpenID provider.
The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.
Returns the ID for a user based on a password reset token.
The user ID, or -1 if there is no user ID associated with the specified password reset token.
The password reset token.
The class was not initialized using a call to the method.
Returns the user name that is associated with the specified email address.
The user name that is associated with the specified email address, or null if no match is found.
The email address to search for.
Returns the user name that is associated with the specified user ID.
The user name.
The user ID to get the name for.
Initializes the provider.
The friendly name of the provider.
A collection of name/value pairs that represent provider-specific attributes.
is null.
contains an unrecognized attribute.
Returns a value that indicates whether the user account has been confirmed by the provider.
true if the user account has been confirmed; otherwise, false.
The user name.
is null or empty.
The class was not initialized using a call to the method.
Gets the number of invalid password or password-answer attempts that are allowed before the membership user is locked out.
The number of invalid password or password-answer attempts that are allowed before the membership user is locked out.
Gets the minimum number of special (non-alphanumeric) characters that a password must contain.
The minimum number of special characters that a password must contain.
Gets the minimum length that is required for a password.
The minimum length that is required for a password.
Gets the number of minutes during which the maximum number of invalid password or security-question answer attempts are allowed before the user account is locked out.
The number of minutes.
Gets a value that indicates the format for storing passwords.
One of the enumeration values that indicates the format.
Gets the regular expression that is used to evaluate password complexity.
The regular expression that is used to evaluate password complexity.
Gets a value that indicates whether the membership provider requires that the user answer a security question for password reset and retrieval.
true if a security-question answer is required; otherwise, false. The default is true.
Gets a value that indicates whether the membership provider requires a unique email address for each user name.
true if the membership provider requires a unique email address; otherwise, false. The default is true.
Resets the password for a user account to a new, automatically generated password.
The new password for the specified user account.
The user account to reset the password for.
The answer to the security question for the new user.
is false.
does not match the security answer for the user account in the membership table and is true.
Resets a password after verifying that the specified password reset token is valid.
true if the password was changed; otherwise, false.
A password reset token.
The new password.
is null or empty.
The class was not initialized using a call to the method.
Unlocks a user account so that the membership user can be validated.
true if the user account was unlocked; otherwise, false.
The user whose user account you want to unlock.
Updates user information.
An object that represents the user account to update and the information to update for that user account.
Gets or sets the name of the database column that contains user IDs.
The name of the database column that contains user IDs.
Gets or sets the name of the database column that contains user names.
The name of the database column that contains user names.
Gets or sets the name of the database table that contains user information.
The name of the database table that contains user information.
Verifies that the specified user account and password exist.
true if the specified user name and password exist, and if the account has been confirmed; otherwise, false.
The name of the user account to validate.
The password for the specified user.
or are null or empty.
Provides basic role-management functionality.
Initializes a new instance of the class.
Initializes a new instance of the class by using the specified role provider.
The previous role provider.
Adds the specified user names to the specified roles.
The user names to add.
The roles to add the names to.
One or more of the specified users already exists in one or more of the specified roles.
Gets or sets the name of the application to store and retrieve role information for.
The name of the application to store and retrieve role information for.
Adds a new role.
The name of the role to create.
The role already exists.
Deletes the specified role.
true if the role was deleted; otherwise, false.
The name of the role to delete.
true to cause an exception to be thrown if one or more users are in . In that case, the specified role is not deleted.
has one or more members, and is true.
Returns all of the specified users who are in the specified role.
The names of all of the users where the user name matches and the user is in the specified role.
The role to search in.
The user name to search for.
Returns a list of all roles.
The names of all of the roles.
Returns a list of the roles that a specified user is in.
The names of all of the roles that the specified user is a member of.
The user to return a list of roles for.
The specified user does not have a membership account.
Returns the user names that are in the specified role.
The user names that are in the specified role.
The name of the role.
Returns a value that indicates whether the specified user is in the specified role.
true if the user is in the role; otherwise, false.
The user name.
The name of the role.
Removes the specified user names from the specified roles.
The user names to remove from the specified roles.
The role names to remove the specified user names from.
One or more of the specified roles do not exist.-or-One or more users are not in all of the specified roles.
The database operation failed.
Returns a value that indicates whether a specified role exists.
true if the role exists; otherwise, false.
The name of the role.
Gets the name of the database column that contains user IDs.
The name of the database column in the table that contains user IDs.
Gets the name of the database column that contains user names.
The name of the database column in the table that contains user names.
Gets the name of the database table that contains user information.
The name of the database table in the table that contains user information.
Provides security and authentication features for ASP.NET Web Pages applications, including the ability to create user accounts, log users in and out, reset or change passwords, and perform related tasks.
Changes the password for the specified user.
true if the password is successfully changed; otherwise, false.
The user name.
The current password for the user.
The new password.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Confirms that an account is valid and activates the account.
true if the account is confirmed; otherwise, false.
A confirmation token to pass to the authentication provider.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Confirms that an account for the specified user name is valid and activates the account.
true if the account is confirmed; otherwise, false.
The user name.
A confirmation token to pass to the authentication provider.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Creates a new membership account using the specified user name and password and optionally lets you specify that the user must explicitly confirm the account.
A token that can be sent to the user to confirm the account.
The user name.
The password.
(Optional) true to specify that the account must be confirmed by using the token return value; otherwise, false. The default is false.
is empty.-or- already has a membership account.-or- is empty.-or- is too long.-or-The database operation failed.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Creates a new user profile entry and a new membership account.
A token that can be sent to the user to confirm the user account.
The user name.
The password for the user.
(Optional) A dictionary that contains additional user attributes. The default is null.
(Optional) true to specify that the user account must be confirmed; otherwise, false. The default is false.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Gets the ID for the current user.
The ID for the current user.
Gets the user name for the current user.
The name of the current user.
Represents the key to the enableSimpleMembership value in the property.
Generates a password reset token that can be sent to a user in email.
A token to send to the user.
The user name.
(Optional) The time in minutes until the password reset token expires. The default is 1440 (24 hours).
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns the date and time when the specified membership account was created.
The date and time that the membership account was created, or if the account creation date is not available.
The user name for the membership account.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns the date and time when an incorrect password was most recently entered for the specified account.
The date and time when an incorrect password was most recently entered for this account, or if an incorrect password has not been entered for this account.
The user name of the membership account.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns the date and time when the password was most recently changed for the specified membership account.
The date and time when the password was most recently changed, or if the password has not been changed for this account.
The user name of the account.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns the number of times that the password for the specified account was incorrectly entered since the last successful login or since the membership account was created.
The count of failed password attempts for the specified account.
The user name of the account.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns the ID for a user based on the specified user name.
The user ID.
The user name.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns a user ID from a password reset token.
The user ID.
The password reset token.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Gets a value that indicates whether the current user has a user ID.
true if the user has a user ID; otherwise, false.
Gets a value that indicates whether the method has been called.
true if the initialization method has been called; otherwise, false.
Initializes the membership system by connecting to a database that contains user information and optionally creates membership tables if they do not already exist.
The name of the connection string for the database that contains user information. If you are using SQL Server Compact, this can be the name of the database file (.sdf file) without the .sdf file name extension.
The name of the database table that contains the user profile information.
The name of the database column that contains user IDs. This column must be typed as an integer (int).
The name of the database column that contains user names. This column is used to match user profile data to membership account data.
true to indicate that user profile and membership tables should be created if they do not exist; false to indicate that tables should not be created automatically. Although the membership tables can be created automatically, the database itself must already exist.
Initializes the membership system by connecting to a database that contains user information by using the specified membership or role provider, and optionally creates membership tables if they do not already exist.
The name of the connection string for the database that contains user information. If you are using SQL Server Compact, this can be the name of the database file (.sdf file) without the .sdf file name extension.
The name of the ADO.NET data provider. If you want to use Microsoft SQL Server, the overload is recommended.
The name of the database table that contains the user profile information.
The name of the database column that contains user IDs. This column must be typed as an integer (int).
The name of the database column that contains user names. This column is used to match user profile data to membership account data.
true to indicate that user profile and membership tables should be created automatically; false to indicate that tables should not be created automatically. Although the membership tables can be created automatically, the database itself must already exist.
Returns a value that indicates whether the specified membership account is temporarily locked because of too many failed password attempts in the specified number of seconds.
true if the membership account is locked; otherwise, false.
The user name of the membership account.
The number of password attempts the user is permitted before the membership account is locked.
The number of seconds to lock a user account after the number of password attempts exceeds the value in the parameter.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns a value that indicates whether the specified membership account is temporarily locked because of too many failed password attempts in the specified time span.
true if the membership account is locked; otherwise, false.
The user name of the membership account.
The number of password attempts the user is permitted before the membership account is locked.
The number of seconds to lock out a user account after the number of password attempts exceeds the value in the parameter.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Gets the authentication status of the current user.
true if the current user is authenticated; otherwise, false. The default is false.
Returns a value that indicates whether the user has been confirmed.
true if the user is confirmed; otherwise, false.
The user name.
Returns a value that indicates whether the user name of the logged-in user matches the specified user name.
true if the logged-in user name matches ; otherwise, false.
The user name to compare the logged-in user name to.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Logs the user in.
true if the user was logged in; otherwise, false.
The user name.
The password.
(Optional) true to specify that the authentication token in the cookie should be persisted beyond the current session; otherwise false. The default is false.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Logs the user out.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
If the user is not authenticated, sets the HTTP status to 401 (Unauthorized).
If the current user is not in all of the specified roles, sets the HTTP status code to 401 (Unauthorized).
The roles to check. The current user must be in all of the roles that are passed in this parameter.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
If the specified user is not logged on, sets the HTTP status to 401 (Unauthorized).
The ID of the user to compare.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
If the current user does not match the specified user name, sets the HTTP status to 401 (Unauthorized).
The name of the user to compare.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Resets a password by using a password reset token.
true if the password was changed; otherwise, false.
A password reset token.
The new password.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.
Returns a value that indicates whether the specified user exists in the membership database.
true if the exists in the user profile table; otherwise, false.
The user name.
The method was not called.-or-The method was not called.-or-The membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.