DesignerRegionCollection.Contains(DesignerRegion) Method

Definition

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

public:
 bool Contains(System::Web::UI::Design::DesignerRegion ^ region);
public bool Contains (System.Web.UI.Design.DesignerRegion region);
member this.Contains : System.Web.UI.Design.DesignerRegion -> bool
Public Function Contains (region As DesignerRegion) As Boolean

Parameters

region
DesignerRegion

The DesignerRegion to locate within the collection.

Returns

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

Remarks

The Contains method determines equality by using the Equals method on the DesignerRegion objects.

The Contains method performs a linear search; therefore, the average execution time is proportional to the Count property. Because template region collections are typically small, the performance of the linear search operation is not critical.

Applies to

See also