RepositoryItemMRUEdit.SaveItemsToXml(String) Method
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Saves items stored in the RepositoryItemMRUEdit.Items collection to the specified XML file, using the default encoding.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v25.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| fileName | String | A string that specifies the full path to the XML file to which data is saved. |
Remarks
To restore items later, use the RepositoryItemMRUEdit.LoadItemsFromXml method.
For information on the default encoding, see the Default topic in MSDN. To save items using a different encoding, use another SaveItemsToXml method overload that takes an encoding parameter.