DataControlFieldCollection.Contains Method (DataControlField)

 

Determines whether the DataControlFieldCollection collection contains a specific DataControlField object.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public bool Contains(
	DataControlField field
)

Return Value

Type: System.Boolean

true 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
Return to top
Show: