Version

Contains Method (TimeRange)

Returns true if the specified TimeSpan lies completely within this range.
Syntax
public bool Contains( 
   TimeSpan value,
   bool isEndExclusive
)

Parameters

value
The TimeSpan to test.
isEndExclusive
Determines whether to exclude the moment in time that coincides with the value of the End property. This parameter default to true.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also