UserInfoProviderSetEnabled Method |
Sets the enabled state for the specified user.
Toggling a user from enabled state to disabled also generates a new
UserSecurityStamp for the user.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax public static void SetEnabled(
UserInfo userInfo,
bool enabled
)
Parameters
- userInfo
- Type: CMS.MembershipUserInfo
User whose enabled state is to be set. - enabled
- Type: SystemBoolean
Enabled state to be set.
Exceptions See Also