Returns all documents that contain any of the specified metadata keys.
Syntax
public static DocumentList<TDocument> WhereContainsAnyKeys<TDocument>(this IEnumerable<TDocument> documents, params string[] metadataKeys)
where TDocument : IDocument
Type Parameters
Name |
Description |
TDocument |
The document type. |
Parameters
Name |
Type |
Description |
documents |
IEnumerable<TDocument> |
The documents. |
metadataKeys |
string[] |
The metadata keys. |
Return Value
Type |
Description |
DocumentList<TDocument> |
All documents that contain any of the specified metadata keys. |