Show / Hide Table of Contents

Class MenuPermissionInfo

MenuPermissionInfo provides the Entity Layer for Module Permissions.

Inheritance
object
MenuPermissionInfo
Implements
IHydratable
Namespace: Dnn.PersonaBar.Library.Model
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class MenuPermissionInfo : PermissionInfoBase, IHydratable

Constructors

MenuPermissionInfo()

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

Declaration
public MenuPermissionInfo()

MenuPermissionInfo(PermissionInfo)

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

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

A PermissionInfo object.

Properties

KeyID

Gets or sets the Key ID.

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

An Integer.

MenuId

Gets or sets the Module ID.

Declaration
public int MenuId { get; set; }
Property Value
Type Description
int

An Integer.

MenuPermissionId

Gets or sets the Module Permission ID.

Declaration
public int MenuPermissionId { get; set; }
Property Value
Type Description
int

An Integer.

PortalId

Declaration
public int PortalId { get; set; }
Property Value
Type Description
int

Methods

Equals(MenuPermissionInfo)

Compares if two MenuPermissionInfo objects are equivalent/equal.

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

a ModulePermissionObject.

Returns
Type Description
bool

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.

Equals(object)

Compares if two MenuPermissionInfo objects are equivalent/equal.

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

a ModulePermissionObject.

Returns
Type Description
bool

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.

Fill(IDataReader)

Fills a MenuPermissionInfo from a Data Reader.

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

The Data Reader to use.

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int

Implements

IHydratable

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS