RoleGroupCollection.IndexOf(RoleGroup) Method

Definition

Searches the collection and returns the zero-based index of the first occurrence of the specified RoleGroup.

C#
public int IndexOf(System.Web.UI.WebControls.RoleGroup group);

Parameters

group
RoleGroup

The RoleGroup to locate in the collection.

Returns

The zero-based index of the first occurrence of group within the entire RoleGroupCollection, if found; otherwise, -1.

Remarks

The IndexOf method performs a linear search; therefore the average execution time depends on the number of members in the collection.

Applies to

Производ Верзије
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also