DocumentFilter

DocumentFilter class

Represents the base class for document filters. Contains methods for creation document filter instances.

public abstract class DocumentFilter

Methods

Name Description
static CreateAnd(params DocumentFilter[]) Creates a logical conjunction of the specified filters.
static CreateCreationTimeLowerBound(DateTime) Creates a filter for skipping documents with creation date earlier than the lower bound.
static CreateCreationTimeRange(DateTime, DateTime) Creates a filter for skipping documents with creation date out of the specified range.
static CreateCreationTimeUpperBound(DateTime) Creates a filter for skipping documents with creation date later than the upper bound.
static CreateFileExtension(params string[]) Creates a filter for skipping documents that do not have allowable extension.
static CreateFileLengthLowerBound(long) Creates a filter for skipping documents with the length less than the lower bound.
static CreateFileLengthRange(long, long) Creates a filter for skipping documents out of the specified document length range.
static CreateFileLengthUpperBound(long) Creates a filter for skipping documents with the length greater than the upper bound.
static CreateFilePathRegularExpression(string) Creates a filter for skipping documents that are not match a regular expression. The regular expression is applied to the full path of a document.
static CreateFilePathRegularExpression(string, RegexOptions) Creates a filter for skipping documents that are not match a regular expression. The regular expression is applied to the full path of a document.
static CreateModificationTimeLowerBound(DateTime) Creates a filter for skipping documents with modification date earlier than the lower bound.
static CreateModificationTimeRange(DateTime, DateTime) Creates a filter for skipping documents with modification date out of the specified range.
static CreateModificationTimeUpperBound(DateTime) Creates a filter for skipping documents with modification date later than the upper bound.
static CreateNot(DocumentFilter) Creates a filter that has inverse logic in relation to the specified inner filter.
static CreateOr(params DocumentFilter[]) Creates a logical disjunction of the specified filters.
abstract ToString() Returns string representation of a document filter.

Remarks

Learn more

See Also