Synced
Settings.TryGet
Section titled “Settings.TryGet”
- Tries to get an isolated effective setting from the current extension generation.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Core.Settings
Scope: Runtime
Declaration
Section titled “Declaration”public static bool InnoEngine.Settings.Settings.TryGet<TSetting>(InnoEngine.Settings.ProjectSettingId id, out TSetting? setting) where TSetting : class, InnoEngine.Serialization.ISerializableType parameters
Section titled “Type parameters”Type parameter TSetting: The required setting contract.
Parameters
Section titled “Parameters”Parameter id: The stable setting protocol identity.
Parameter setting: Receives an independently owned effective snapshot when available.
Returns
Section titled “Returns”true when a compatible setting exists; otherwise, false.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when no project settings lookup is active for the caller.