Поделиться через


DateTimeInterval Class

Definition

An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. [start, end).

public class DateTimeInterval
public class DateTimeInterval : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ResourceGraph.Models.DateTimeInterval>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ResourceGraph.Models.DateTimeInterval>
type DateTimeInterval = class
type DateTimeInterval = class
    interface IJsonModel<DateTimeInterval>
    interface IPersistableModel<DateTimeInterval>
Public Class DateTimeInterval
Public Class DateTimeInterval
Implements IJsonModel(Of DateTimeInterval), IPersistableModel(Of DateTimeInterval)
Inheritance
DateTimeInterval
Implements

Constructors

DateTimeInterval(DateTimeOffset, DateTimeOffset)

Initializes a new instance of DateTimeInterval.

Properties

EndOn

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.

StartOn

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.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DateTimeInterval>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DateTimeInterval>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DateTimeInterval>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DateTimeInterval>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DateTimeInterval>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to