System.Web.UI.Design.TemplateGroupCollection.Contains Method

Determines whether the specified group is contained within the collection.

Syntax

public bool Contains (TemplateGroup group)

Parameters

group
The System.Web.UI.Design.TemplateGroup to locate within the collection.

Returns

true if the group is in the collection; otherwise, false.

Remarks

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.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0