C# 클래스 EPiUtilities.Filters.DateIntervalFilter

A filter which filters pages on whether a certain property is in a given date interval. If the property has no value the page will be removed as well. If you need a "later than" or "earlier than" filter just use DateTime.MaxValue or MinValue as one of the boundaries.
상속: IPageFilter
파일 보기 프로젝트 열기: JohannesOstensjo/EPiUtilities

공개 메소드들

메소드 설명
DateIntervalFilter ( System.DateTime fromDate, System.DateTime toDate, string datePropertyName ) : System

Creates a filter that will filter the specified property with the specified date range.

Filter ( PageDataCollection pages ) : void

Filters the collection, removing pages that do not have a value in the correct range for the specified property.

Filter ( object sender, FilterEventArgs e ) : void

Event handler that calls the filter in this filter class.

PageChangedFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter

Returns an instance of DateIntervalFilter that will filter on the page changed property.

PageCreatedFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter

Returns an instance of DateIntervalFilter that will filter on the page created property.

ShouldFilter ( System.PageData page ) : bool

Returns true if the filter will remove this page when filtering a collection.

StartPublishFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter

Returns an instance of DateIntervalFilter that will filter on the start publish property.

StopPublishFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter

Returns an instance of DateIntervalFilter that will filter on the stop publish property.

메소드 상세

DateIntervalFilter() 공개 메소드

Creates a filter that will filter the specified property with the specified date range.
public DateIntervalFilter ( System.DateTime fromDate, System.DateTime toDate, string datePropertyName ) : System
fromDate System.DateTime
toDate System.DateTime
datePropertyName string
리턴 System

Filter() 공개 메소드

Filters the collection, removing pages that do not have a value in the correct range for the specified property.
public Filter ( PageDataCollection pages ) : void
pages PageDataCollection
리턴 void

Filter() 공개 메소드

Event handler that calls the filter in this filter class.
public Filter ( object sender, FilterEventArgs e ) : void
sender object
e FilterEventArgs
리턴 void

PageChangedFilter() 공개 정적인 메소드

Returns an instance of DateIntervalFilter that will filter on the page changed property.
public static PageChangedFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter
fromDate System.DateTime
toDate System.DateTime
리턴 DateIntervalFilter

PageCreatedFilter() 공개 정적인 메소드

Returns an instance of DateIntervalFilter that will filter on the page created property.
public static PageCreatedFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter
fromDate System.DateTime
toDate System.DateTime
리턴 DateIntervalFilter

ShouldFilter() 공개 메소드

Returns true if the filter will remove this page when filtering a collection.
public ShouldFilter ( System.PageData page ) : bool
page System.PageData
리턴 bool

StartPublishFilter() 공개 정적인 메소드

Returns an instance of DateIntervalFilter that will filter on the start publish property.
public static StartPublishFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter
fromDate System.DateTime
toDate System.DateTime
리턴 DateIntervalFilter

StopPublishFilter() 공개 정적인 메소드

Returns an instance of DateIntervalFilter that will filter on the stop publish property.
public static StopPublishFilter ( System.DateTime fromDate, System.DateTime toDate ) : DateIntervalFilter
fromDate System.DateTime
toDate System.DateTime
리턴 DateIntervalFilter