Свойство | Type | Description | |
---|---|---|---|
EnableSimpleMembershipKey | string |
Свойство | Type | Description | |
---|---|---|---|
CreateAccount | string | ||
CreateDefaultSimpleMembershipProvider | SimpleMembershipProvider | ||
CreateDefaultSimpleRoleProvider | SimpleRoleProvider | ||
CreateUserAndAccount | string | ||
GeneratePasswordResetToken | string | ||
InitializeMembershipProvider | void | ||
InitializeProviders | void | ||
InitializeRoleProvider | void | ||
IsAccountLockedOutInternal | bool | ||
IsUserLoggedOn | bool | ||
Login | bool | ||
Logout | void | ||
PreAppStartInit | void | ||
VerifyProvider | GuidExtendedMembershipProvider |
Méthode | Description | |
---|---|---|
ChangePassword ( string userName, string currentPassword, string newPassword ) : bool | ||
ConfirmAccount ( string accountConfirmationToken ) : bool | ||
ConfirmAccount ( string userName, string accountConfirmationToken ) : bool | ||
GetCreateDate ( string userName ) : System.DateTime | ||
GetLastPasswordFailureDate ( string userName ) : System.DateTime | ||
GetPasswordChangedDate ( string userName ) : System.DateTime | ||
GetPasswordFailuresSinceLastSuccess ( string userName ) : int | ||
GetUserId ( string userName ) : System.Guid | ||
GetUserIdFromPasswordResetToken ( string token ) : System.Guid | ||
InitializeDatabaseConnection ( string connectionStringName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void | ||
InitializeDatabaseConnection ( string connectionString, string providerName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void | ||
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, TimeSpan interval ) : bool | ||
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool | ||
IsConfirmed ( string userName ) : bool | ||
IsCurrentUser ( string userName ) : bool | ||
RequireAuthenticatedUser ( ) : void | ||
RequireRoles ( ) : void | ||
RequireUser ( Guid userId ) : void | ||
RequireUser ( string userName ) : void | ||
ResetPassword ( string passwordResetToken, string newPassword ) : bool | ||
UserExists ( string userName ) : bool |
Méthode | Description | |
---|---|---|
CreateAccount ( string userName, string password, bool requireConfirmationToken = false ) : string | ||
CreateDefaultSimpleMembershipProvider ( string name, |
||
CreateDefaultSimpleRoleProvider ( string name, System.Web.Security.RoleProvider currentDefault ) : SimpleRoleProvider | ||
CreateUserAndAccount ( string userName, string password, object propertyValues = null, bool requireConfirmationToken = false ) : string | ||
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 1440 ) : string | ||
InitializeMembershipProvider ( SimpleMembershipProvider simpleMembership, DatabaseConnectionInfo connect, string userTableName, string userIdColumn, string userNameColumn, bool createTables ) : void | ||
InitializeProviders ( DatabaseConnectionInfo connect, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void | ||
InitializeRoleProvider ( SimpleRoleProvider simpleRoles, DatabaseConnectionInfo connect, string userTableName, string userIdColumn, string userNameColumn, bool createTables ) : void | ||
IsAccountLockedOutInternal ( GuidExtendedMembershipProvider provider, string userName, int allowedPasswordAttempts, TimeSpan interval ) : bool | ||
IsUserLoggedOn ( Guid userId ) : bool | ||
Login ( string userName, string password, bool persistCookie = false ) : bool | ||
Logout ( ) : void | ||
PreAppStartInit ( ) : void | ||
VerifyProvider ( ) : GuidExtendedMembershipProvider |
public static ChangePassword ( string userName, string currentPassword, string newPassword ) : bool | ||
userName | string | |
currentPassword | string | |
newPassword | string | |
Résultat | bool |
public static ConfirmAccount ( string accountConfirmationToken ) : bool | ||
accountConfirmationToken | string | |
Résultat | bool |
public static ConfirmAccount ( string userName, string accountConfirmationToken ) : bool | ||
userName | string | |
accountConfirmationToken | string | |
Résultat | bool |
public static GetCreateDate ( string userName ) : System.DateTime | ||
userName | string | |
Résultat | System.DateTime |
public static GetLastPasswordFailureDate ( string userName ) : System.DateTime | ||
userName | string | |
Résultat | System.DateTime |
public static GetPasswordChangedDate ( string userName ) : System.DateTime | ||
userName | string | |
Résultat | System.DateTime |
public static GetPasswordFailuresSinceLastSuccess ( string userName ) : int | ||
userName | string | |
Résultat | int |
public static GetUserId ( string userName ) : System.Guid | ||
userName | string | |
Résultat | System.Guid |
public static GetUserIdFromPasswordResetToken ( string token ) : System.Guid | ||
token | string | |
Résultat | System.Guid |
public static InitializeDatabaseConnection ( string connectionStringName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void | ||
connectionStringName | string | |
userTableName | string | |
userIdColumn | string | |
userNameColumn | string | |
autoCreateTables | bool | |
Résultat | void |
public static InitializeDatabaseConnection ( string connectionString, string providerName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void | ||
connectionString | string | |
providerName | string | |
userTableName | string | |
userIdColumn | string | |
userNameColumn | string | |
autoCreateTables | bool | |
Résultat | void |
public static IsAccountLockedOut ( string userName, int allowedPasswordAttempts, TimeSpan interval ) : bool | ||
userName | string | |
allowedPasswordAttempts | int | |
interval | TimeSpan | |
Résultat | bool |
public static IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool | ||
userName | string | |
allowedPasswordAttempts | int | |
intervalInSeconds | int | |
Résultat | bool |
public static IsConfirmed ( string userName ) : bool | ||
userName | string | |
Résultat | bool |
public static IsCurrentUser ( string userName ) : bool | ||
userName | string | |
Résultat | bool |
public static RequireAuthenticatedUser ( ) : void | ||
Résultat | void |
public static RequireUser ( Guid userId ) : void | ||
userId | Guid | |
Résultat | void |
public static RequireUser ( string userName ) : void | ||
userName | string | |
Résultat | void |
public static ResetPassword ( string passwordResetToken, string newPassword ) : bool | ||
passwordResetToken | string | |
newPassword | string | |
Résultat | bool |
public static UserExists ( string userName ) : bool | ||
userName | string | |
Résultat | bool |