PublicAPI.Projects.ProjectRole.GetAllProjectRoleUsers ELMA API Documentation
Get all the project role users
 
 
Syntax

public IEnumerable<User> GetAllProjectRoleUsers(
	Project project,
	ProjectRole projectRole
)

Parameters

project
Type: Project
Project. Object. Access path: PublicAPI.Projects.Project
projectRole
Type: ProjectRole
Project role. Object. Access path: PublicAPI.Projects.ProjectRole

Return Value

Type: IEnumerable User 
List of users
Examples

//load the project by ID 
var project = PublicAPI.Projects.Project.Load(3);
//load the project role by ID 
var projectRole = PublicAPi.Projects.ProjectRole.Load(3);

//get the list of project role users 
var userList = PublicAPI.Projects.ProjectRole.GetAllProjectRoleUsers(project, projectRole);

//userList - list of the projectRole users of the project
See Also