CimResourceUserList.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 CimResourceUserList.Item returns an item by index or by name.

Examples

' If ADMINISTRATOR resource isn't assigned to the resource then add it.
if resource.Users.Item("ADMINISTRATOR") = "" then
   resource.Users.Add "ADMINISTRATOR"
end if