Grabs all the CContent that belongs to the current CNavMenu.

Namespace: Asi.iBO.ContentManagement
Assembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0

Syntax

C#
public CContent[] GetContent(
	bool isPreview,
	string sortColumn,
	decimal excludeContentId
)
Visual Basic
Public Function GetContent ( _
	isPreview As Boolean, _
	sortColumn As String, _
	excludeContentId As Decimal _
) As CContent()
Visual C++
public:
array<CContent^>^ GetContent(
	bool isPreview, 
	String^ sortColumn, 
	Decimal excludeContentId
)

Parameters

isPreview
Type: System..::..Boolean
A boolean indicating whether to get content in preview mode.
sortColumn
Type: System..::..String
Column list to sort by
excludeContentId
Type: System..::..Decimal
ContentID to exclude from the return array

Return Value

Array of CContent

Remarks

When isPreview is set to true, it will return an array of the most current CContent. When it's set to false, it will return an array of the latest published CContent. excludeContentId is used for a case where a particular content, usually a default content, should not be included in the returned array.

See Also