Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IProject.GetRole Method

Returns the role in this project based on the given role type.

IRole GetRole(
RoleTypes roleType
);

#### Parameters

roleType
  Type of role, cannot be `null`.

#### Return Value

The role given a role type.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The project has not yet been stored or has already been removed.

#### See Also

IProject Interface | Plumtree.Remote.PRC.Collaboration.Project Namespace