Share via


DateTimeInterval(DateTimeOffset, DateTimeOffset) Constructor

Definition

Initializes a new instance of DateTimeInterval.

public DateTimeInterval (DateTimeOffset startOn, DateTimeOffset endOn);
new Azure.ResourceManager.ResourceGraph.Models.DateTimeInterval : DateTimeOffset * DateTimeOffset -> Azure.ResourceManager.ResourceGraph.Models.DateTimeInterval
Public Sub New (startOn As DateTimeOffset, endOn As DateTimeOffset)

Parameters

startOn
DateTimeOffset

A datetime indicating the inclusive/closed start of the time interval, i.e. [start, end). Specifying a start that occurs chronologically after end will result in an error.

endOn
DateTimeOffset

A datetime indicating the exclusive/open end of the time interval, i.e. [start, end). Specifying an end that occurs chronologically before start will result in an error.

Applies to