• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class ModulePermissionInfo

ModulePermissionInfo provides the Entity Layer for Module Permissions.

Inheritance
System.Object
BaseEntityInfo
PermissionInfo
PermissionInfoBase
ModulePermissionInfo
Implements
IPermissionInfo
IPermissionDefinitionInfo
IHydratable
Inherited Members
PermissionInfoBase.AllowAccess
PermissionInfoBase.DisplayName
PermissionInfoBase.RoleID
PermissionInfoBase.RoleName
PermissionInfoBase.UserID
PermissionInfoBase.Username
PermissionInfoBase.FillInternal(IDataReader)
PermissionInfo.ModuleDefID
PermissionInfo.PermissionCode
PermissionInfo.PermissionID
PermissionInfo.PermissionKey
PermissionInfo.PermissionName
BaseEntityInfo.CreatedByUserID
BaseEntityInfo.CreatedOnDate
BaseEntityInfo.LastModifiedByUserID
BaseEntityInfo.LastModifiedOnDate
BaseEntityInfo.CreatedByUser(Int32)
BaseEntityInfo.LastModifiedByUser(Int32)
BaseEntityInfo.CloneBaseProperties(BaseEntityInfo, BaseEntityInfo)
Namespace: DotNetNuke.Security.Permissions
Assembly: DotNetNuke.dll
Syntax
public class ModulePermissionInfo : PermissionInfoBase, IPermissionInfo, IPermissionDefinitionInfo, IHydratable

Constructors

| Improve this Doc View Source

ModulePermissionInfo()

Initializes a new instance of the ModulePermissionInfo class. Constructs a new ModulePermissionInfo.

Declaration
public ModulePermissionInfo()
| Improve this Doc View Source

ModulePermissionInfo(PermissionInfo)

Initializes a new instance of the ModulePermissionInfo class. Constructs a new ModulePermissionInfo.

Declaration
public ModulePermissionInfo(PermissionInfo permission)
Parameters
Type Name Description
PermissionInfo permission

A PermissionInfo object.

Properties

| Improve this Doc View Source

KeyID

Gets or sets the Key ID.

Declaration
public int KeyID { get; set; }
Property Value
Type Description
System.Int32

An Integer.

| Improve this Doc View Source

ModuleID

Gets or sets the Module ID.

Declaration
public int ModuleID { get; set; }
Property Value
Type Description
System.Int32

An Integer.

| Improve this Doc View Source

ModulePermissionID

Gets or sets the Module Permission ID.

Declaration
public int ModulePermissionID { get; set; }
Property Value
Type Description
System.Int32

An Integer.

Methods

| Improve this Doc View Source

Equals(ModulePermissionInfo)

Compares if two ModulePermissionInfo objects are equivalent/equal.

Declaration
public bool Equals(ModulePermissionInfo other)
Parameters
Type Name Description
ModulePermissionInfo other

a ModulePermissionObject.

Returns
Type Description
System.Boolean

true if the permissions being passed represents the same permission in the current object.

Remarks

This function is needed to prevent adding duplicates to the ModulePermissionCollection. ModulePermissionCollection.Contains will use this method to check if a given permission is already included in the collection.

| Improve this Doc View Source

Equals(Object)

Compares if two ModulePermissionInfo objects are equivalent/equal.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

a ModulePermissionObject.

Returns
Type Description
System.Boolean

true if the permissions being passed represents the same permission in the current object.

Remarks

This function is needed to prevent adding duplicates to the ModulePermissionCollection. ModulePermissionCollection.Contains will use this method to check if a given permission is already included in the collection.

| Improve this Doc View Source

Fill(IDataReader)

Fills a ModulePermissionInfo from a Data Reader.

Declaration
public void Fill(IDataReader dr)
Parameters
Type Name Description
IDataReader dr

The Data Reader to use.

| Improve this Doc View Source

GetHashCode()

ModulePermissionInfo provides the Entity Layer for Module Permissions.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Implements

IPermissionInfo
IPermissionDefinitionInfo
IHydratable

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS