summaryM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)
Namespace: DotNetNuke.Security.RolesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public void AddUserRole( int portalId, int userId, int roleId, RoleStatus status, bool isOwner, DateTime effectiveDate, DateTime expiryDate ) |
Visual Basic |
---|
Public 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
paramportalIdM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)
- userId
- Type: System..::..Int32
paramuserIdM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)
- roleId
- Type: System..::..Int32
paramroleIdM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)
- status
- Type: DotNetNuke.Security.Roles..::..RoleStatus
paramstatusM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)
- isOwner
- Type: System..::..Boolean
paramisOwnerM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)
- effectiveDate
- Type: System..::..DateTime
parameffectiveDateM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)
- expiryDate
- Type: System..::..DateTime
paramexpiryDateM:DotNetNuke.Security.Roles.RoleController.AddUserRole(System.Int32,System.Int32,System.Int32,DotNetNuke.Security.Roles.RoleStatus,System.Boolean,System.DateTime,System.DateTime)