CollectionExtensions.

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

Summary

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

Syntax

public static IEnumerable<IDocument> WhereContainsAnyKeys(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 any of the specified metadata keys.
GitHub