C# Class Stormpath.SDK.WithinExpressionExtensions

Provides a set of static methods for making shorthand date queries within LINQ-to-Stormpath.
Afficher le fichier Open project: stormpath/stormpath-sdk-dotnet

Méthodes publiques

Méthode Description
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.

Method Details

Within() public static méthode

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.
Résultat bool

Within() public static méthode

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.
Résultat bool

Within() public static méthode

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.
Résultat bool

Within() public static méthode

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.
Résultat bool

Within() public static méthode

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.
Résultat bool

Within() public static méthode

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.
Résultat bool