DataControlFieldCollection.Contains Method (DataControlField)
.NET Framework (current version)
Determines whether the DataControlFieldCollection collection contains a specific DataControlField object.
Assembly: System.Web (in System.Web.dll)
Parameters
- field
-
Type:
System.Web.UI.WebControls.DataControlField
The DataControlField to locate in the DataControlFieldCollection.
Return Value
Type: System.Booleantrue if the DataControlFieldCollection contains the specified field; otherwise, false.
This method performs a linear search. It determines equality by calling Object.Equals.
.NET Framework
Available since 2.0
Available since 2.0
Show: