WhereContainsAllKeys<TDocument>(IEnumerable<TDocument>, string[]) Method
Returns all documents that contain all of the specified metadata keys.
Namespace
Statiq.Common
Containing Type
IDocumentEnumerableExtensions

Syntax

public static DocumentList<TDocument> WhereContainsAllKeys<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 all of the specified metadata keys.