Metadata(IEnumerable<KeyValuePair<string, object>>) Constructor
Creates a new set of metadata.
Namespace
Statiq.Common
Containing Type
Metadata

Syntax

public Metadata(IEnumerable<KeyValuePair<string, object>> items = null)

Remarks

This is marked as protected internal to discourage public use. When at all possible, metadata should be created such that it evaluated scripted metadata. If a IExecutionState isn't available for use at the time the metadata is needed, then a derived type should be created for use.

Parameters

Name Type Description
items IEnumerable<KeyValuePair<string, object>> The initial set of items. If null, no underlying dictionary will be created.