Table of Contents

Class RangeWindow

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents a range window for a SetWindowFields window method.

public sealed class RangeWindow : SetWindowFieldsWindow
Inheritance
RangeWindow
Inherited Members

Properties

Current

Returns a "current" range window boundary.

public static KeywordRangeWindowBoundary Current { get; }

Property Value

KeywordRangeWindowBoundary

LowerBoundary

The lower boundary.

public RangeWindowBoundary LowerBoundary { get; }

Property Value

RangeWindowBoundary

Unbounded

Returns an "unbounded" range window boundary.

public static KeywordRangeWindowBoundary Unbounded { get; }

Property Value

KeywordRangeWindowBoundary

UpperBoundary

The upper boundary.

public RangeWindowBoundary UpperBoundary { get; }

Property Value

RangeWindowBoundary

Methods

Create(KeywordRangeWindowBoundary, KeywordRangeWindowBoundary)

Creates a range window.

public static RangeWindow Create(KeywordRangeWindowBoundary lowerBoundary, KeywordRangeWindowBoundary upperBoundary)

Parameters

lowerBoundary KeywordRangeWindowBoundary

The lower boundary.

upperBoundary KeywordRangeWindowBoundary

The upper boundary.

Returns

RangeWindow

A range window.

Create(KeywordRangeWindowBoundary, TimeRangeWindowBoundary)

Creates a range window.

public static RangeWindow Create(KeywordRangeWindowBoundary lowerBoundary, TimeRangeWindowBoundary upperBoundary)

Parameters

lowerBoundary KeywordRangeWindowBoundary

The lower boundary.

upperBoundary TimeRangeWindowBoundary

The upper boundary.

Returns

RangeWindow

A range window.

Create(TimeRangeWindowBoundary, KeywordRangeWindowBoundary)

Creates a range window.

public static RangeWindow Create(TimeRangeWindowBoundary lowerBoundary, KeywordRangeWindowBoundary upperBoundary)

Parameters

lowerBoundary TimeRangeWindowBoundary

The lower boundary.

upperBoundary KeywordRangeWindowBoundary

The upper boundary.

Returns

RangeWindow

A range window.

Create(TimeRangeWindowBoundary, TimeRangeWindowBoundary)

Creates a range window.

public static RangeWindow Create(TimeRangeWindowBoundary lowerBoundary, TimeRangeWindowBoundary upperBoundary)

Parameters

lowerBoundary TimeRangeWindowBoundary

The lower boundary.

upperBoundary TimeRangeWindowBoundary

The upper boundary.

Returns

RangeWindow

A range window.

Create<TValue>(KeywordRangeWindowBoundary, TValue)

Creates a range window.

public static RangeWindow Create<TValue>(KeywordRangeWindowBoundary lowerBoundary, TValue upperBoundary)

Parameters

lowerBoundary KeywordRangeWindowBoundary

The lower boundary.

upperBoundary TValue

The upper boundary.

Returns

RangeWindow

A range window.

Type Parameters

TValue

The type of the upper boundary condition.

Create<TValue>(TValue, KeywordRangeWindowBoundary)

Creates a range window.

public static RangeWindow Create<TValue>(TValue lowerBoundary, KeywordRangeWindowBoundary upperBoundary)

Parameters

lowerBoundary TValue

The lower boundary.

upperBoundary KeywordRangeWindowBoundary

The upper boundary.

Returns

RangeWindow

A range window.

Type Parameters

TValue

The type of the lower boundary condition.

Create<TValue>(TValue, TValue)

Creates a range window.

public static RangeWindow Create<TValue>(TValue lowerBoundary, TValue upperBoundary)

Parameters

lowerBoundary TValue

The lower boundary.

upperBoundary TValue

The upper boundary.

Returns

RangeWindow

A range window.

Type Parameters

TValue

The type of the boundary conditions.

Days(int)

Returns a time range in days.

public static TimeRangeWindowBoundary Days(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

Hours(int)

Returns a time range in hours.

public static TimeRangeWindowBoundary Hours(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

Milliseconds(int)

Returns a time range in milliseconds.

public static TimeRangeWindowBoundary Milliseconds(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

Minutes(int)

Returns a time range in minutes.

public static TimeRangeWindowBoundary Minutes(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

Months(int)

Returns a time range in months.

public static TimeRangeWindowBoundary Months(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

Quarters(int)

Returns a time range in quarters.

public static TimeRangeWindowBoundary Quarters(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

Seconds(int)

Returns a time range in seconds.

public static TimeRangeWindowBoundary Seconds(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

ToString()

public override string ToString()

Returns

string

Weeks(int)

Returns a time range in weeks.

public static TimeRangeWindowBoundary Weeks(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.

Years(int)

Returns a time range in years.

public static TimeRangeWindowBoundary Years(int value)

Parameters

value int

The value.

Returns

TimeRangeWindowBoundary

A time range.