CalendarBlackoutDatesCollection.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기