Only sets the new metadata value if a value doesn't already exist.
- Namespace
- Statiq
.Core - Containing Type
- SetMetadata
Syntax
public SetMetadata OnlyIfNonExisting(bool onlyIfNonExisting = true)
Remarks
The default behavior is to set the new value regardless.
Parameters
| Name | Type | Description |
|---|---|---|
| onlyIfNonExisting | bool | true if the new value should only be set if it doesn't already exist. |
Return Value
| Type | Description |
|---|---|
| SetMetadata | The current module instance. |