Click or drag to resize
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.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
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
ExceptionCondition
ArgumentNullExceptionThrown when userInfo is null.
See Also