This documentation is archived and is not being maintained.

TemplateGroupCollection.System.Collections.IList.IndexOf Method

Note: This method is new in the .NET Framework version 2.0.

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

For a description of this member, see IndexOf.

Namespace: System.Web.UI.Design
Assembly: System.Design (in

int IList.IndexOf (
	Object o
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of explicit interface implementations, but not the declarations of new ones.



The TemplateGroup to locate within the collection.

Return Value

The zero-based index of the first occurrence of o within the collection; otherwise, -1, if o is not in the collection.

This member is an explicit interface member implementation. It can be used only when the TemplateGroupCollection instance is cast to an IList interface.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0