Creates a new set of metadata.
- Namespace
- Statiq
.Common - Containing Type
- Metadata
Syntax
public Metadata(IMetadata previous, 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 |
---|---|---|
previous | IMetadata | The previous set of metadata this one should extend. |
items | IEnumerable |
The initial set of items. If null, no underlying dictionary will be created. |