System.Web.UI.Design.DesignerRegionCollection.Contains Method

Gets a value indicating whether the specified region is contained within the collection.

Syntax

public bool Contains (DesignerRegion region)

Parameters

region
The System.Web.UI.Design.DesignerRegion to locate within the collection.

Returns

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

Remarks

The DesignerRegionCollection.Contains(DesignerRegion) method determines equality by using the object.Equals(object) method on the System.Web.UI.Design.DesignerRegion objects.

The DesignerRegionCollection.Contains(DesignerRegion) method performs a linear search; therefore, the average execution time is proportional to the DesignerRegionCollection.Count property. Because template region collections are typically 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