Updates a Service (UserRole)

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

Syntax

C#
void UpdateUserRole(
	int portalId,
	int userId,
	int roleId,
	RoleStatus status,
	bool isOwner,
	bool cancel
)
Visual Basic
Sub UpdateUserRole ( 
	portalId As Integer,
	userId As Integer,
	roleId As Integer,
	status As RoleStatus,
	isOwner As Boolean,
	cancel As Boolean
)

Parameters

portalId
Type: System..::..Int32
The Id of the Portal
userId
Type: System..::..Int32
The Id of the User
roleId
Type: System..::..Int32
The Id of the Role
status
Type: DotNetNuke.Security.Roles..::..RoleStatus
The status of the Role
isOwner
Type: System..::..Boolean
If the user is the owner of the Role
cancel
Type: System..::..Boolean
A flag that indicates whether to cancel (delete) the userrole

See Also