Gets a new filtered
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.
- Namespace
- Statiq
.Common - Containing Type
- I
Metadata Get Extensions
Syntax
public static IMetadata FilterMetadata(this IMetadata metadata, params string[] keys)
Parameters
Name | Type | Description |
---|---|---|
metadata | IMetadata | The metadata instance. |
keys | string[] | The keys to include in the new filtered metadata object. |