CustomDocument.

GetMetadata(string[]) Method

Summary

Gets a new Wyam.Common.Meta.IMetadata containing only the specified keys and their values. If a key is not present in the current metadata, it will be ignored and will not be copied to the new metadata object.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Documents
Containing Type
CustomDocument

Syntax

public IMetadata GetMetadata(params string[] keys)

Parameters

Name Type Description
keys string[] The keys to include in the new metadata object.

Return Value

Type Description
IMetadata A new Wyam.Common.Meta.IMetadata containing the specified keys and their values.
GitHub