Filters the documents by destination.
Syntax
public static FilteredDocumentList<TDocument> FilterDestinations<TDocument>(this IEnumerable<TDocument> documents, params string[] patterns)
where TDocument : IDocument
This module 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