System.Web.UI.WebControls.DataControlFieldCollection.Contains Method

Determines whether the System.Web.UI.WebControls.DataControlFieldCollection collection contains a specific System.Web.UI.WebControls.DataControlField object.

Syntax

public bool Contains (DataControlField field)

Parameters

field
The System.Web.UI.WebControls.DataControlField to locate in the System.Web.UI.WebControls.DataControlFieldCollection.

Returns

true if the System.Web.UI.WebControls.DataControlFieldCollection contains the specified field; otherwise, false.

Remarks

This method performs a linear search. It determines equality by calling object.Equals(object).

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0