The specified object in fromKey is copied to toKey. If a format is provided, the fromKey value is processed through string.Format before being copied (if the existing value is a DateTime, the format is passed as the argument to ToString).
- Namespace
- Statiq
.Core - Containing Type
- CopyMetadata
Syntax
public CopyMetadata(string fromKey, string toKey, string format = null)
Parameters
Name | Type | Description |
---|---|---|
fromKey | string | The metadata key to copy from. |
toKey | string | The metadata key to copy to. |
format | string | The formatting to apply to the new value. |