Finds a news category in role by role name.

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

Syntax

C#
NewsCategoryInRoleEntity FindCategoryInRoleByRoleName(
	List<NewsCategoryInRoleEntity> collection,
	string roleName
)
Visual Basic
Function FindCategoryInRoleByRoleName ( 
	collection As List(Of NewsCategoryInRoleEntity),
	roleName As String
) As NewsCategoryInRoleEntity
Visual C++
NewsCategoryInRoleEntity^ FindCategoryInRoleByRoleName(
	List<NewsCategoryInRoleEntity^>^ collection, 
	String^ roleName
)
F#
abstract FindCategoryInRoleByRoleName : 
        collection : List<NewsCategoryInRoleEntity> * 
        roleName : string -> NewsCategoryInRoleEntity 

Parameters

collection
Type: System.Collections.Generic..::..List<(Of <(<'NewsCategoryInRoleEntity>)>)>
News category in role collection
roleName
Type: System..::..String
Role name to search for

Return Value

Type: NewsCategoryInRoleEntity
News category in role

See Also