GetDesktopModuleByModuleName gets a Desktop Module by its Name

Namespace: DotNetNuke.Entities.Modules
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static DesktopModuleInfo GetDesktopModuleByModuleName(
	string moduleName,
	int portalID
)
Visual Basic
Public Shared Function GetDesktopModuleByModuleName ( 
	moduleName As String,
	portalID As Integer
) As DesktopModuleInfo

Parameters

moduleName
Type: System..::..String
The name of the Desktop Module to get
portalID
Type: System..::..Int32
The ID of the portal

Return Value

returnsM:DotNetNuke.Entities.Modules.DesktopModuleController.GetDesktopModuleByModuleName(System.String,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.

See Also