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: 13.0.131
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 Exception | Condition |
---|
ArgumentNullException | Thrown when userInfo is null. |
See Also