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 |
The documents. |
| metadataKey | string | The key. |
Return Value
| Type | Description |
|---|---|
| IEnumerable |
All documents that contain the specified metadata key. |
