Class RoleInfo
The RoleInfo class provides the Entity Layer Role object.
Inherited Members
Namespace: DotNetNuke.Security.Roles
Assembly: DotNetNuke.dll
Syntax
public class RoleInfo : BaseEntityInfo, IHydratable, IPropertyAccess
Constructors
| Improve this Doc View SourceRoleInfo()
Initializes a new instance of the RoleInfo class.
Declaration
public RoleInfo()
Properties
| Improve this Doc View SourceAutoAssignment
Gets or sets a value indicating whether users are automatically assigned to the role.
Declaration
public bool AutoAssignment { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
BillingFrequency
Gets or sets the Billing Frequency for the role.
Declaration
public string BillingFrequency { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String representing the Billing Frequency of the Role. |
BillingPeriod
Gets or sets the length of the billing period.
Declaration
public int BillingPeriod { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Cacheability
Gets the cache level for property access.
Declaration
public CacheLevel Cacheability { get; }
Property Value
Type | Description |
---|---|
CacheLevel |
Description
Gets or sets the Description of the Role.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IconFile
Gets or sets the Icon File for the role.
Declaration
public string IconFile { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsPublic
Gets or sets a value indicating whether the role is public.
Declaration
public bool IsPublic { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSystemRole
Gets or sets a value indicating whether this role is a system role.
Declaration
public bool IsSystemRole { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean representing whether this is a system role such as Administrators, Registered Users etc. |
KeyID
The RoleInfo class provides the Entity Layer Role object.
Declaration
public virtual int KeyID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PhotoURL
The RoleInfo class provides the Entity Layer Role object.
Declaration
public string PhotoURL { get; }
Property Value
Type | Description |
---|---|
System.String |
PortalID
Gets or sets the Portal Id for the Role.
Declaration
public int PortalID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RoleGroupID
Gets or sets the RoleGroup Id.
Declaration
public int RoleGroupID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RoleID
Gets or sets the Role Id.
Declaration
public int RoleID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RoleName
Gets or sets the Role Name.
Declaration
public string RoleName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RoleType
Gets the Role Type.
Declaration
public RoleType RoleType { get; }
Property Value
Type | Description |
---|---|
RoleType | A enum representing the type of the role. |
RSVPCode
Gets or sets the RSVP Code for the role.
Declaration
public string RSVPCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SecurityMode
Gets or sets whether the role is a security role and can be used in Permission Grids etc.
Declaration
public SecurityMode SecurityMode { get; set; }
Property Value
Type | Description |
---|---|
SecurityMode |
ServiceFee
Gets or sets the fee for the role.
Declaration
public float ServiceFee { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Settings
Gets the role settings.
Declaration
public Dictionary<string, string> Settings { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.String> |
Status
Gets or sets the status for the role.
Declaration
public RoleStatus Status { get; set; }
Property Value
Type | Description |
---|---|
RoleStatus | An enumerated value Pending, Disabled, Approved. |
TrialFee
Gets or sets the trial fee for the role.
Declaration
public float TrialFee { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
TrialFrequency
Gets or sets the Trial Frequency for the role.
Declaration
public string TrialFrequency { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String representing the Trial Frequency of the Role.
|
TrialPeriod
Gets or sets the length of the trial period.
Declaration
public int TrialPeriod { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UserCount
Gets the number of users in the role.
Declaration
public int UserCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceFill(IDataReader)
Fills a RoleInfo from a Data Reader.
Declaration
public virtual void Fill(IDataReader dr)
Parameters
Type | Name | Description |
---|---|---|
IDataReader | dr | The Data Reader to use. |
GetProperty(String, String, CultureInfo, UserInfo, Scope, ref Boolean)
Gets a property.
Declaration
public string GetProperty(string propertyName, string format, CultureInfo formatProvider, UserInfo accessingUser, Scope accessLevel, ref bool propertyNotFound)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name to get. |
System.String | format | The format string to format the property with, or |
CultureInfo | formatProvider | The format provider (e.g. |
UserInfo | accessingUser | The user this property belongs to, UserInfo. |
Scope | accessLevel | The Scope of the access level for this property. |
System.Boolean | propertyNotFound | An out parameter that indicates if the property was not found. |
Returns
Type | Description |
---|---|
System.String | A string with the value of the property. |
GetSchema()
The RoleInfo class provides the Entity Layer Role object.
Declaration
public XmlSchema GetSchema()
Returns
Type | Description |
---|---|
XmlSchema |
ReadXml(XmlReader)
Reads a RoleInfo from an XmlReader.
Declaration
public void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
XmlReader | reader |
WriteXml(XmlWriter)
Writes a RoleInfo to an XmlWriter.
Declaration
public void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer |