C# Класс Stormpath.SDK.WithinExpressionExtensions

Provides a set of static methods for making shorthand date queries within LINQ-to-Stormpath.
Показать файл Открыть проект

Открытые методы

Метод Описание
Within ( DateTimeOffset field, int year ) : bool

Asserts that a DateTimeOffset falls within a particular year.

Within ( DateTimeOffset field, int year, int month ) : bool

Asserts that a DateTimeOffset falls within a particular month and year.

Within ( DateTimeOffset field, int year, int month, int day ) : bool

Asserts that a DateTimeOffset falls within a particular day, month, and year.

Within ( DateTimeOffset field, int year, int month, int day, int hour ) : bool

Asserts that a DateTimeOffset falls within a particular hour on a particular day, month, and year.

Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute ) : bool

Asserts that a DateTimeOffset falls within a particular hour and minute on a particular day, month, and year.

Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute, int second ) : bool

Asserts that a DateTimeOffset falls within a particular hour, minute, and second on a particular day, month, and year.

Описание методов

Within() публичный статический Метод

Asserts that a DateTimeOffset falls within a particular year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year ) : bool
field DateTimeOffset The date field to compare.
year int The year.
Результат bool

Within() публичный статический Метод

Asserts that a DateTimeOffset falls within a particular month and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
Результат bool

Within() публичный статический Метод

Asserts that a DateTimeOffset falls within a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
Результат bool

Within() публичный статический Метод

Asserts that a DateTimeOffset falls within a particular hour on a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day, int hour ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
hour int The hour.
Результат bool

Within() публичный статический Метод

Asserts that a DateTimeOffset falls within a particular hour and minute on a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
hour int The hour.
minute int The minute.
Результат bool

Within() публичный статический Метод

Asserts that a DateTimeOffset falls within a particular hour, minute, and second on a particular day, month, and year.
This method can only be used from inside a LINQ Where predicate.
public static Within ( DateTimeOffset field, int year, int month, int day, int hour, int minute, int second ) : bool
field DateTimeOffset The date field to compare.
year int The year.
month int The month.
day int The day.
hour int The hour.
minute int The minute.
second int The second.
Результат bool