CollectionExtensions.

WhereContainsKey(IEnumerable<IDocument>, string) Method

Summary

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

Syntax

public static IEnumerable<IDocument> WhereContainsKey(this IEnumerable<IDocument> documents, string metadataKey)

Parameters

Name Type Description
documents IEnumerable<IDocument> The documents.
metadataKey string The key.

Return Value

Type Description
IEnumerable<IDocument> All documents that contain the specified metadata key.
GitHub