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#
public virtual NewsCategoryInRoleEntity FindCategoryInRole(
	List<NewsCategoryInRoleEntity> collection,
	string roleName,
	Guid roleId
)
Visual Basic
Public Overridable Function FindCategoryInRole ( 
	collection As List(Of NewsCategoryInRoleEntity),
	roleName As String,
	roleId As Guid
) As NewsCategoryInRoleEntity
Visual C++
public:
virtual NewsCategoryInRoleEntity^ FindCategoryInRole(
	List<NewsCategoryInRoleEntity^>^ collection, 
	String^ roleName, 
	Guid roleId
)
F#
abstract FindCategoryInRole : 
        collection : List<NewsCategoryInRoleEntity> * 
        roleName : string * 
        roleId : Guid -> NewsCategoryInRoleEntity 
override FindCategoryInRole : 
        collection : List<NewsCategoryInRoleEntity> * 
        roleName : string * 
        roleId : Guid -> NewsCategoryInRoleEntity 

Parameters

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

Return Value

Type: NewsCategoryInRoleEntity
News category in role

Implements

INewsBLL..::..FindCategoryInRole(List<(Of <<'(NewsCategoryInRoleEntity>)>>), String, Guid)

See Also