System.Web.UI.WebControls.SelectedDatesCollection.Contains Method

Returns a value indicating whether the System.Web.UI.WebControls.SelectedDatesCollection collection contains the specified DateTime object.

Syntax

public bool Contains (DateTime date)

Parameters

date
The DateTime to search for in the System.Web.UI.WebControls.SelectedDatesCollection.

Returns

true if the System.Web.UI.WebControls.SelectedDatesCollection contains the specified DateTime; otherwise, false.

Remarks

Use this method to determine whether the System.Web.UI.WebControls.SelectedDatesCollection collection contains the specified DateTime object.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0