s&box docs

public class Sandbox.Metadata

A simple class for storing and retrieving metadata values.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

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.

Parameters

  • defaultValue: Default: null

public void SetValue(string key, object value)

Set a value with the specified key.

public bool TryGetValue(string key, T outValue)

Try to get a value of the specified type.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Metadata

On this page