CalendarBlackoutDatesCollection.Contains Method

Definition

Returns a value that represents whether this collection contains the specified date or dates.

Overloads

Contains(DateTime)

Returns a value that represents whether this collection contains the specified date.

Contains(DateTime, DateTime)

Returns a value that represents whether this collection contains the specified range of dates.

Contains(DateTime)

Returns a value that represents whether this collection contains the specified date.

public:
 bool Contains(DateTime date);
public bool Contains (DateTime date);
override this.Contains : DateTime -> bool
Public Function Contains (date As DateTime) As Boolean

Parameters

date
DateTime

The date to search for.

Returns

true if the collection contains the specified date; otherwise, false.

Applies to

Contains(DateTime, DateTime)

Returns a value that represents whether this collection contains the specified range of dates.

public:
 bool Contains(DateTime start, DateTime end);
public bool Contains (DateTime start, DateTime end);
override this.Contains : DateTime * DateTime -> bool
Public Function Contains (start As DateTime, end As DateTime) As Boolean

Parameters

start
DateTime

The start of the date range.

end
DateTime

The end of the date range.

Returns

true if all dates in the range are contained in the collection; otherwise, false.

Applies to