Summary
Gets the value for the specified key converted to a
IReadOnlyList<IDocument>
. This method never throws an exception.
It will return null if the key is not found and an empty list if the key is found but contains no items that can be converted to Wyam.Common.Documents.IDocument
.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .Meta - Containing Type
- Metadata
Conversion Extensions
Syntax
public static IReadOnlyList<IDocument> DocumentList(this IMetadata metadata, string key, IReadOnlyList<IDocument> defaultValue = null)
Parameters
Return Value
Type | Description |
---|---|
IReadOnlyList |
The value for the specified key converted to a list or null. |