Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Writes one neutral value under a stable extension-local key.

API: scripting
Project: Inno.Editor.Core
Scope: Editor

public abstract void InnoEditor.Core.EditorState.Set<T>(string key, T value)

Type parameter T: The neutral value type supplied by the caller.

Parameter key: The stable key local to the owning module or panel.

Parameter value: The value to persist.

Exception T:System.ArgumentException: Thrown when key is empty.

Exception T:System.InvalidOperationException: Thrown when the state parameter was supplied for restoration and is therefore read-only.

Exception T:System.NotSupportedException: Thrown when value cannot be represented by the runtime state serializer.