Click or drag to resize

NewsItemGetNewsListFromCategory Method (String, DateTime, DateTime, Boolean, NewsStatus, ArrayList, SortFields, SortDirection, String, Int32, Int32)

Gets the list of news by specified parameters.

Namespace:  Dynamicweb.News
Assembly:  Dynamicweb.News (in Dynamicweb.News.dll) Version: 1.0.10
Syntax
public static NewsItemCollection GetNewsListFromCategory(
	string categoryIDs,
	DateTime dateFrom,
	DateTime dateTo,
	bool useNowDate,
	NewsStatus status,
	ArrayList extranetGroups,
	SortFields sort,
	SortDirection direction,
	string search,
	int startItem,
	int endItem
)

Parameters

categoryIDs
Type: SystemString
The list of news category ids.
dateFrom
Type: SystemDateTime
The start date.
dateTo
Type: SystemDateTime
The end date.
useNowDate
Type: SystemBoolean
if set to true use start and end dates in the request.
status
Type: Dynamicweb.NewsNewsStatus
The status of news.
extranetGroups
Type: System.CollectionsArrayList
The extranet groups list.
sort
Type: Dynamicweb.NewsSortFields
The sorting field.
direction
Type: Dynamicweb.Modules.CommonSortDirection
The sorting direction.
search
Type: SystemString
The searching filter.
startItem
Type: SystemInt32
The start item.
endItem
Type: SystemInt32
The end item.

Return Value

Type: NewsItemCollection
See Also