API ReferenceSandbox
Metadataclass
A simple class for storing and retrieving metadata values.
object→Metadata
Constructors1
Showing 1 constructors
public Metadata()
No results match this filter.
Methods3
Showing 3 methods
public T GetValueOrDefault(string key, T defaultValue = null)
Get the a value. If it's missing or the wrong type then use the default value.
| Parameter | Type | Description |
|---|---|---|
| key | string | — |
| defaultValue = null | T | — |
Returns:
T—public void SetValue(string key, object value)
Set a value with the specified key.
| Parameter | Type | Description |
|---|---|---|
| key | string | — |
| value | object | — |
Returns:
void—public bool TryGetValue(string key, T outValue)
Try to get a value of the specified type.
| Parameter | Type | Description |
|---|---|---|
| key | string | — |
| outValue | T | — |
Returns:
bool—No results match this filter.