CollectionExtensions.

WhereContainsAllKeys(IEnumerable<IDocument>, string[]) Method

Summary

Returns all documents that contain all of the specified metadata keys.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Documents
Containing Type
CollectionExtensions

Syntax

public static IEnumerable<IDocument> WhereContainsAllKeys(this IEnumerable<IDocument> documents, params string[] metadataKeys)

Parameters

Name Type Description
documents IEnumerable<IDocument> The documents.
metadataKeys string[] The metadata keys.

Return Value

Type Description
IEnumerable<IDocument> All documents that contain all of the specified metadata keys.
GitHub