GetDesktopModule gets a Desktop Module by its ID
Namespace: DotNetNuke.Entities.ModulesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static DesktopModuleInfo GetDesktopModule( int desktopModuleID, int portalID ) |
Visual Basic |
---|
Public Shared Function GetDesktopModule ( desktopModuleID As Integer, portalID As Integer ) As DesktopModuleInfo |
Parameters
- desktopModuleID
- Type: System..::..Int32
The ID of the Desktop Module to get
- portalID
- Type: System..::..Int32
The ID of the portal
Return Value
returnsM:DotNetNuke.Entities.Modules.DesktopModuleController.GetDesktopModule(System.Int32,System.Int32)
Remarks
This method uses the cached Dictionary of DesktopModules. It first checks
if the DesktopModule is in the cache. If it is not in the cache it then makes a call
to the Dataprovider.