Class DesktopModulePermissionInfo
DesktopModulePermissionInfo provides the Entity Layer for DesktopModulePermissionInfo Permissions.
Inheritance
Inherited Members
Namespace: DotNetNuke.Security.Permissions
Assembly: DotNetNuke.dll
Syntax
public class DesktopModulePermissionInfo : PermissionInfoBase, IPermissionInfo, IPermissionDefinitionInfo, IHydratable
Constructors
| Improve this Doc View SourceDesktopModulePermissionInfo()
Initializes a new instance of the DesktopModulePermissionInfo class. Constructs a new DesktopModulePermissionInfo.
Declaration
public DesktopModulePermissionInfo()
DesktopModulePermissionInfo(PermissionInfo)
Initializes a new instance of the DesktopModulePermissionInfo class. Constructs a new DesktopModulePermissionInfo.
Declaration
public DesktopModulePermissionInfo(PermissionInfo permission)
Parameters
Type | Name | Description |
---|---|---|
PermissionInfo | permission | A PermissionInfo object. |
Properties
| Improve this Doc View SourceDesktopModulePermissionID
Gets or sets the DesktopModule Permission ID.
Declaration
public int DesktopModulePermissionID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An Integer. |
KeyID
Gets or sets the Key ID.
Declaration
public int KeyID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An Integer. |
PortalDesktopModuleID
Gets or sets the PortalDesktopModule ID.
Declaration
public int PortalDesktopModuleID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An Integer. |
Methods
| Improve this Doc View SourceEquals(DesktopModulePermissionInfo)
Compares if two DesktopModulePermissionInfo objects are equivalent/equal.
Declaration
public bool Equals(DesktopModulePermissionInfo other)
Parameters
Type | Name | Description |
---|---|---|
DesktopModulePermissionInfo | other | a DesktopModulePermissionObject. |
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 DesktopModulePermissionCollection. DesktopModulePermissionCollection.Contains will use this method to check if a given permission is already included in the collection.
Equals(Object)
Compares if two DesktopModulePermissionInfo objects are equivalent/equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | a DesktopModulePermissionObject. |
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 DesktopModulePermissionCollection. DesktopModulePermissionCollection.Contains will use this method to check if a given permission is already included in the collection.
Fill(IDataReader)
Fills a DesktopModulePermissionInfo from a Data Reader.
Declaration
public void Fill(IDataReader dr)
Parameters
Type | Name | Description |
---|---|---|
IDataReader | dr | The Data Reader to use. |
GetHashCode()
DesktopModulePermissionInfo provides the Entity Layer for DesktopModulePermissionInfo Permissions.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |