Filters the documents by source.
Syntax
public static FilteredDocumentList<TDocument> FilterSources<TDocument>(this IEnumerable<TDocument> documents, params string[] patterns)
where TDocument : IDocument
This filters documents using "or" logic. If you want to also apply
"and" conditions, chain additional calls. This also flattens the
documents using
Children
before filtering.
Type Parameters
Name |
Description |
TDocument |
The document type. |
Parameters
Name |
Type |
Description |
documents |
IEnumerable<TDocument> |
The documents to filter. |
patterns |
string[] |
The globbing pattern(s) to match. |
Return Value