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
Показать файл Открыть проект

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

Метод Описание
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