| 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
)
Public Shared Function GetNewsListFromCategory (
categoryIDs As String,
dateFrom As DateTime,
dateTo As DateTime,
useNowDate As Boolean,
status As NewsStatus,
extranetGroups As ArrayList,
sort As SortFields,
direction As SortDirection,
search As String,
startItem As Integer,
endItem As Integer
) As NewsItemCollection
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:
NewsItemCollectionSee Also