프로퍼티 | 타입 | 설명 | |
---|---|---|---|
CheckPassword | bool | ||
ReadMembershipDataStore | void |
메소드 | 설명 | |
---|---|---|
ChangePassword ( string username, string oldPassword, string newPassword ) : bool |
Processes a request to update the password for a membership user.
|
|
ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool |
Processes a request to update the password question and answer for a membership user.
|
|
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool approved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser |
Creates the user.
|
|
DeleteUser ( string username, bool deleteAllRelatedData ) : bool |
Removes a user from the membership data source.
|
|
FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection |
Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.
|
|
FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection |
Gets a collection of membership users where the user name contains the specified user name to match.
|
|
GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection |
Retrieves a collection of all the users. This implementation ignores pageIndex and pageSize, and it doesn't sort the MembershipUser objects returned.
|
|
GetNumberOfUsersOnline ( ) : int |
The get number of users online.
|
|
GetPassword ( string username ) : string |
Gets the password for the user with the given username.
|
|
GetPassword ( string username, string answer ) : string |
Gets the password for the specified user name from the data source.
|
|
GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser |
Get a user based on the username parameter. the userIsOnline parameter is ignored.
|
|
GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser |
Retrieves a user based on his/hers username. the userIsOnline parameter is ignored.
|
|
GetUserNameByEmail ( string email ) : string |
Retrieves a username based on a matching email.
|
|
Initialize ( string name, |
Initializes the provider.
|
|
ResetPassword ( string username, string answer ) : string |
Resets a user's password to a new, automatically generated password.
|
|
UnlockUser ( string userName ) : bool |
Clears a lock so that the membership user can be validated.
|
|
UpdateUser ( System.Web.Security.MembershipUser user ) : void |
Updates a user. The username will not be changed.
|
|
ValidateUser ( string username, string password ) : bool |
Returns true if the username and password match an exsisting user.
|
메소드 | 설명 | |
---|---|---|
CheckPassword ( string storedPassword, string inputPassword ) : bool |
The check password.
|
|
ReadMembershipDataStore ( ) : void |
Builds the internal cache of users.
|
public ChangePassword ( string username, string oldPassword, string newPassword ) : bool | ||
username | string | The user to update the password for. |
oldPassword | string | The current password for the specified user. |
newPassword | string | The new password for the specified user. |
리턴 | bool |
public ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool | ||
username | string | The user to change the password question and answer for. |
password | string | The password for the specified user. |
newPasswordQuestion | string | The new password question for the specified user. |
newPasswordAnswer | string | The new password answer for the specified user. |
리턴 | bool |
public CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool approved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser | ||
username | string | The username. |
password | string | The password. |
string | The email. | |
passwordQuestion | string | The password question. |
passwordAnswer | string | The password answer. |
approved | bool | if set to |
providerUserKey | object | The provider user key. |
status | MembershipCreateStatus | The status. |
리턴 | System.Web.Security.MembershipUser |
public DeleteUser ( string username, bool deleteAllRelatedData ) : bool | ||
username | string | The name of the user to delete. |
deleteAllRelatedData | bool | true to delete data related to the user from the database; false to leave data related to the user in the database. |
리턴 | bool |
public FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
emailToMatch | string | The e-mail address to search for. |
pageIndex | int | The index of the page of results to return. |
pageSize | int | The size of the page of results to return. |
totalRecords | int | The total number of matched users. |
리턴 | System.Web.Security.MembershipUserCollection |
public FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
usernameToMatch | string | The user name to search for. |
pageIndex | int | The index of the page of results to return. |
pageSize | int | The size of the page of results to return. |
totalRecords | int | The total number of matched users. |
리턴 | System.Web.Security.MembershipUserCollection |
public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
pageIndex | int | The page Index. |
pageSize | int | The page Size. |
totalRecords | int | The total Records. |
리턴 | System.Web.Security.MembershipUserCollection |
public GetPassword ( string username ) : string | ||
username | string | /// the given username /// |
리턴 | string |
public GetPassword ( string username, string answer ) : string | ||
username | string | /// The user to retrieve the password for. /// |
answer | string | /// The password answer for the user. /// |
리턴 | string |
public GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser | ||
providerUserKey | object | /// The provider User Key. /// |
userIsOnline | bool | /// The user Is Online. /// |
리턴 | System.Web.Security.MembershipUser |
public GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser | ||
username | string | /// The username. /// |
userIsOnline | bool | /// The user Is Online. /// |
리턴 | System.Web.Security.MembershipUser |
public GetUserNameByEmail ( string email ) : string | ||
string | /// The email. /// | |
리턴 | string |
public Initialize ( string name, |
||
name | string | The friendly name of the provider. |
config | A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider. | |
리턴 | void |
public ResetPassword ( string username, string answer ) : string | ||
username | string | The user to reset the password for. |
answer | string | The password answer for the specified user. |
리턴 | string |
public UnlockUser ( string userName ) : bool | ||
userName | string | The membership user whose lock status you want to clear. |
리턴 | bool |
public UpdateUser ( System.Web.Security.MembershipUser user ) : void | ||
user | System.Web.Security.MembershipUser | /// The membership user. /// |
리턴 | void |
public ValidateUser ( string username, string password ) : bool | ||
username | string | /// The username. /// |
password | string | /// The password. /// |
리턴 | bool |