Gets the news categories for current application in specified language.

Namespace: MonoSoftware.MonoX.Repositories
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public virtual EntityCollection<NewsCategoryEntity> GetCategories(
	out Context activeContext,
	bool onlyPublished,
	Nullable<bool> editPermissionsRequired,
	Nullable<bool> viewPermissionsRequired
)
Visual Basic
Public Overridable Function GetCategories ( 
	<OutAttribute> ByRef activeContext As Context,
	onlyPublished As Boolean,
	editPermissionsRequired As Nullable(Of Boolean),
	viewPermissionsRequired As Nullable(Of Boolean)
) As EntityCollection(Of NewsCategoryEntity)
Visual C++
public:
virtual EntityCollection<NewsCategoryEntity^>^ GetCategories(
	[OutAttribute] Context^% activeContext, 
	bool onlyPublished, 
	Nullable<bool> editPermissionsRequired, 
	Nullable<bool> viewPermissionsRequired
)
F#
abstract GetCategories : 
        activeContext : Context byref * 
        onlyPublished : bool * 
        editPermissionsRequired : Nullable<bool> * 
        viewPermissionsRequired : Nullable<bool> -> EntityCollection<NewsCategoryEntity> 
override GetCategories : 
        activeContext : Context byref * 
        onlyPublished : bool * 
        editPermissionsRequired : Nullable<bool> * 
        viewPermissionsRequired : Nullable<bool> -> EntityCollection<NewsCategoryEntity> 

Parameters

activeContext
Type: Context%
Active context which will ensure that there is only one copy of each fetched object
onlyPublished
Type: System..::..Boolean
Get only published categories
editPermissionsRequired
Type: System..::..Nullable<(Of <(<'Boolean>)>)>
Specify if edit permissions are required
viewPermissionsRequired
Type: System..::..Nullable<(Of <(<'Boolean>)>)>
Specify if view permissions are required

Return Value

Type: EntityCollection<(Of <(<'NewsCategoryEntity>)>)>
News category collection

Implements

INewsRepository..::..GetCategories(Context%, Boolean, Nullable<(Of <<'(Boolean>)>>), Nullable<(Of <<'(Boolean>)>>))

See Also