- group
- The System.Web.UI.Design.TemplateGroup to locate within the collection.
true if the group is in the collection; otherwise, false.
The TemplateGroupCollection.Contains(TemplateGroup) method determines equality by using the object.Equals(object) method on the System.Web.UI.Design.TemplateGroup objects.
The TemplateGroupCollection.Contains(TemplateGroup) method performs a linear search; therefore, the average execution time is proportional to the TemplateGroupCollection.Count property. Because template group collections typically are small, the performance of the linear search operation is not critical.