Summary
Gets the value for the specified key converted to a
Wyam.Common.Documents.IDocument
. This method never throws an exception.
It will return null if the key is not found.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .Meta - Containing Type
- Metadata
Conversion Extensions
Syntax
public static IDocument Document(this IMetadata metadata, string key, IDocument defaultValue = null)
Parameters
Return Value
Type | Description |
---|---|
IDocument | The value for the specified key converted to a string or null. |