AddModuleDefinition adds a new Core Module Definition to the system

Namespace: DotNetNuke.Services.Upgrade
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static int AddModuleDefinition(
	string desktopModuleName,
	string description,
	string moduleDefinitionName
)
Visual Basic
Public Shared Function AddModuleDefinition ( 
	desktopModuleName As String,
	description As String,
	moduleDefinitionName As String
) As Integer

Parameters

desktopModuleName
Type: System..::..String
The Friendly Name of the Module to Add
description
Type: System..::..String
Description of the Module
moduleDefinitionName
Type: System..::..String
The Module Definition Name

Return Value

The Module Definition Id of the new Module

Remarks

This overload asumes the module is an Admin module and not a Premium Module

See Also