DeleteAllModules deletes all instances of a Module (from a collection), optionally excluding the current instance, and optionally including deleting the Module itself.

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

Syntax

C#
public void DeleteAllModules(
	int moduleId,
	int tabId,
	List<TabInfo> fromTabs,
	bool softDelete,
	bool includeCurrent,
	bool deleteBaseModule
)
Visual Basic
Public 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
A flag that determines whether the instance should be soft-deleted
includeCurrent
Type: System..::..Boolean
A flag to indicate whether to delete from the current tab as identified ny tabId
deleteBaseModule
Type: System..::..Boolean
A flag to indicate whether to delete the Module itself

Implements

IModuleController..::..DeleteAllModules(Int32, Int32, List<(Of <<'(TabInfo>)>>), Boolean, Boolean, Boolean)

Remarks

Note - the base module is not removed unless both the flags are set, indicating to delete all instances AND to delete the Base Module

See Also