Click or drag to resize
RoleInfoProviderValidateCodeName Method
Validates the role name. Returns true if the role name follows rules defined by IsCodeName(Object, Boolean)

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public override bool ValidateCodeName(
	RoleInfo info
)

Parameters

info
Type: CMS.MembershipRoleInfo
Role info object to check

Return Value

Type: Boolean
Remarks
Since domain role name can be retrieved from different services with different rules for role name, validation for domain role names can be turned off using CMSEnsureSafeRoleNames key in web.config.
See Also