CimRoleList.Item (read-only property)

Gets the role by name.
Syntax: Set CimRole = object.Item ( RoleID )
Parameters:
RoleID As String - Role ID to be retrieved.
Description: CimRoleList.Item returns a CimRole by name. Use this method to obtain a CimRole object for an existing role in the project.

Examples

Dim project As CimProject
Set project = CreateObject("CimProject")
project.OpenLocalProject "d:\classes\classes.gef"
Dim roles As CimRoleList
Dim role As cimRole
Set roles = roles.Item("OPER")
role.PrivSetpoint = False
roles.Save role, False