DeleteAllModules deletes all instances of a Module (from a collection). This overload soft deletes the instances

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

Syntax

C#
void DeleteAllModules(
	int moduleId,
	int tabId,
	List<TabInfo> fromTabs,
	bool softDelete,
	bool includeCurrent,
	bool deleteBaseModule
)
Visual Basic
Sub DeleteAllModules ( 
	moduleId As Integer,
	tabId As Integer,
	fromTabs As List(Of TabInfo),
	softDelete As Boolean,
	includeCurrent As Boolean,
	deleteBaseModule As Boolean
)

Parameters

moduleId
Type: System..::..Int32
The Id of the module to copy
tabId
Type: System..::..Int32
The Id of the current tab
fromTabs
Type: System.Collections.Generic..::..List<(Of <(<'TabInfo>)>)>
An ArrayList of TabItem objects
softDelete
Type: System..::..Boolean
paramsoftDeleteM:DotNetNuke.Entities.Modules.IModuleController.DeleteAllModules(System.Int32,System.Int32,System.Collections.Generic.List{DotNetNuke.Entities.Tabs.TabInfo},System.Boolean,System.Boolean,System.Boolean)
includeCurrent
Type: System..::..Boolean
paramincludeCurrentM:DotNetNuke.Entities.Modules.IModuleController.DeleteAllModules(System.Int32,System.Int32,System.Collections.Generic.List{DotNetNuke.Entities.Tabs.TabInfo},System.Boolean,System.Boolean,System.Boolean)
deleteBaseModule
Type: System..::..Boolean
paramdeleteBaseModuleM:DotNetNuke.Entities.Modules.IModuleController.DeleteAllModules(System.Int32,System.Int32,System.Collections.Generic.List{DotNetNuke.Entities.Tabs.TabInfo},System.Boolean,System.Boolean,System.Boolean)

See Also