You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param name The name for the SettingDictionary. If a dictionary by that name already exists in the iModel, its value is replaced.
2260
2260
* @param dict The SettingDictionary object to stringify and save.
2261
2261
* @note All saved `SettingDictionary`s are loaded into [[workspace.settings]] every time an iModel is opened.
2262
+
* @see [[Settings.addDictionary]] to register a dictionary for the current session only without persisting it.
2262
2263
* @beta@deprecated Use EditTxn.saveSettingDictionary instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
* Like iModel-specific settings, any settings supplied by the iTwin will override those defined at the application level.
204
204
*
205
205
* Application settings are loaded into [[IModelHost.appWorkspace]] when the session begins (i.e., when [[IModelHost.startup]] is invoked), and unloaded when it ends (in [[IModelHost.shutdown]]).
206
-
* They are read from [JSON5](https://json5.org/) files delivered with the application. The application should register any additional [[SettingsDictionary]]'s '(and their corresponding
207
-
* [[SettingGroupSchema]]s) at this time.
206
+
* They are read from [JSON5](https://json5.org/) files delivered with the application. The application should register any additional [[SettingsDictionary]]s
207
+
* (and their corresponding [[SettingGroupSchema]]s) at this time.
208
208
*
209
209
* iModel-specific settings are stored in the iModel's property table and loaded into [[IModelDb.workspace]] when the iModel is first opened.
210
-
* You can add and remove a [[SettingsDictionary]] from the property table using [[IModelDb.saveSettingDictionary]] and [[IModelDb.deleteSettingDictionary]].
210
+
* You can add and remove a [[SettingsDictionary]] from the property table using [[EditTxn.saveSettingDictionary]] and [[EditTxn.deleteSettingDictionary]].
211
+
* If you are migrating older code, [[IModelDb.saveSettingDictionary]] and [[IModelDb.deleteSettingDictionary]] are deprecated in favor of the [[EditTxn]] APIs.
211
212
*
212
213
* iTwin-specific settings are stored in a [[CloudSqliteContainer]] in the cloud.
213
214
* When [[IModelHost.getITwinWorkspace]] is invoked, the container is accessed using the iTwinId and the settings are loaded into the returned [[Workspace]].
214
-
* You can add and remove a [[SettingsDictionary]] from the container using [[Workspace.saveSettingsDictionary]] and [[Workspace.deleteSettingsDictionary]].
215
+
* You can add and remove a [[SettingsDictionary]] from the container using [[IModelHost.saveSettingDictionary]] and [[IModelHost.deleteSettingDictionary]].
215
216
*
216
217
* See the [learning article]($docs/learning/backend/Workspace) for a detailed overview and examples.
217
218
*
@@ -256,6 +257,7 @@ export interface Settings {
256
257
257
258
/** Add a new [[SettingsDictionary]] with the priority, name, and [[WorkspaceDb]] specified by `props` and setting values supplied by `settings`.
258
259
* @note If a dictionary with the same name and [[WorkspaceDb]] already exists, it will be replaced.
260
+
* @note Values added via this method exist only for the current session. They are not persisted and will be lost when the host shuts down.
259
261
* @see [[addFile]], [[addJson]], and [[addDirectory]] for convenient ways to add dictionaries from various sources.
Copy file name to clipboardExpand all lines: docs/changehistory/NextVersion.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@ Delete it:
275
275
276
276
To use iTwin-scoped settings dictionaries, configure [IModelHost.authorizationClient]($backend) and [BlobContainer.service]($backend) so the backend can query and update the iTwin settings workspace container.
277
277
278
-
See the [Workspace documentation]($docs/learning/backend/Workspace.md) for full details.
278
+
See the [Settings documentation]($docs/learning/backend/Settings.md#itwin-settings) for full details on iTwin-scoped settings and the [Workspace documentation]($docs/learning/backend/Workspace.md) for workspace resources.
0 commit comments