| NewsItemGetNewsListFromCategory Method (String, NewsStatus, SortFields, SortDirection, String, Int32, Int32, Boolean) |
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,
NewsStatus status,
SortFields sort,
SortDirection direction,
string search,
int startItem,
int endItem,
bool bAdmin
)
Public Shared Function GetNewsListFromCategory (
categoryIds As String,
status As NewsStatus,
sort As SortFields,
direction As SortDirection,
search As String,
startItem As Integer,
endItem As Integer,
bAdmin As Boolean
) As NewsItemCollection
Parameters
- categoryIds
- Type: SystemString
The list of news category ids. - status
- Type: Dynamicweb.NewsNewsStatus
The status of news. - 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. - bAdmin
- Type: SystemBoolean
if set to true gets all news, otherwise gets only active news.
Return Value
Type:
NewsItemCollectionSee Also