Adds a role

Namespace: DotNetNuke.Security.Roles.Internal
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
int AddRole(
	RoleInfo role,
	bool addToExistUsers
)
Visual Basic
Function AddRole ( 
	role As RoleInfo,
	addToExistUsers As Boolean
) As Integer

Parameters

role
Type: DotNetNuke.Security.Roles..::..RoleInfo
The Role to Add
addToExistUsers
Type: System..::..Boolean
Add this role on all exist users if auto assignment is true.

Return Value

The Id of the new role

See Also