Discards a Tab Version. If the tab only has an unpublished version, the page will keep but with no content and not published.

Namespace: DotNetNuke.Entities.Tabs.TabVersions
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
void Discard(
	int tabId,
	int createdByUserId
)
Visual Basic
Sub Discard ( 
	tabId As Integer,
	createdByUserId As Integer
)

Parameters

tabId
Type: System..::..Int32
Tab Id whose version will be discarded
createdByUserId
Type: System..::..Int32
User Id which discards the version

See Also