C# 클래스 Stormpath.SDK.WithinExpressionExtensions

Provides a set of static methods for making shorthand date queries within LINQ-to-Stormpath.
파일 보기 프로젝트 열기: stormpath/stormpath-sdk-dotnet

공개 메소드들

메소드 설명
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