Adds a User to a Role
Namespace: DotNetNuke.Security.RolesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
void AddUserRole( int portalId, int userId, int roleId, RoleStatus status, bool isOwner, DateTime effectiveDate, DateTime expiryDate ) |
Visual Basic |
---|
Sub AddUserRole ( portalId As Integer, userId As Integer, roleId As Integer, status As RoleStatus, isOwner As Boolean, effectiveDate As DateTime, expiryDate As DateTime ) |
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
- effectiveDate
- Type: System..::..DateTime
The expiry Date of the Role membership
- expiryDate
- Type: System..::..DateTime
The expiry Date of the Role membership
Remarks
Overload adds Effective Date