The RoleId of the Security Role of the Administrators group of the portal
Namespace: DotNetNuke.Entities.PortalsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
[XmlElementAttribute("administratorroleid")] public int AdministratorRoleId { get; set; } |
Visual Basic |
---|
<XmlElementAttribute("administratorroleid")> Public Property AdministratorRoleId As Integer Get Set |
Field Value
RoleId of de Administrators Security RoleReturn Value
RoleId of de Administrators Security Role
Remarks
Examples
This shows the usage of the AdministratoprRoleId
![]() | |
---|---|
Dim objPortal As PortalInfo = New PortalController().GetPortal(PortalID) If RoleID = objPortal.AdministratorRoleId Then _RoleType = Roles.RoleType.Administrator ElseIf RoleID = objPortal.RegisteredRoleId Then _RoleType = Roles.RoleType.RegisteredUser ElseIf RoleName = "Subscribers" Then _RoleType = Roles.RoleType.Subscriber End If |