Show / Hide Table of Contents

Constructor TimeExtent

TimeExtent(DateTimeOffset, DateTimeOffset)

Initializes a new instance of the TimeExtent class with the given start and end times.

Declaration
public TimeExtent(DateTimeOffset startTime, DateTimeOffset endTime)
Parameters
Type Name Description
DateTimeOffset startTime

The start time.

DateTimeOffset endTime

The end time.

Exceptions
Type Condition
ArgumentException

Invalid argument.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.2.1 - 200.8
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.8
Relevant samples
Change time extent: Filter data in layers by applying a time extent to a MapView.
Feature layer time offset: Display a time-enabled feature layer with a time offset.
Time-based query: Query data using a time extent.

TimeExtent(DateTimeOffset)

Initializes a new instance of the TimeExtent class with an instant in time.

Declaration
public TimeExtent(DateTimeOffset timeInstant)
Parameters
Type Name Description
DateTimeOffset timeInstant

The time instant. This time represents both the start and end of the extent.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.2.1 - 200.8
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.