Searches the collection and returns the zero-based index of the first occurrence of the specified System.Web.UI.WebControls.RoleGroup.
- group
- The System.Web.UI.WebControls.RoleGroup to locate in the collection.
The zero-based index of the first occurrence of group within the entire System.Web.UI.WebControls.RoleGroupCollection, if found; otherwise, -1.
The RoleGroupCollection.IndexOf(RoleGroup) method performs a linear search; therefore the average execution time depends on the number of members in the collection.