CimUserResourceList.Item (read-only property)

Gets item by index or resource id.
Syntax: String = object.Item ( IndexOrResourceId )
Parameters:
IndexOrResourceId As VARIANT - Returns a resource based on Index or by Id
Description: The CimUserResourceList.Item returns an item by index or by name.

Examples

' If $SYSTEM resource isn't assigned to the user then add it.
if user.Resources.Item("$SYSTEM") = "" then
   user.Resources.Add "$SYSTEM"
end if