Favorites.Import() method
- Last UpdatedJul 19, 2024
- 1 minute read
The Favorites.Import method imports the list of query and filter favorites list from an XML file. You can either overwrite the existing query and filter favorites with the new favorites, or append them.
Syntax
AlarmClient.Favorites.Import(FilePath, FileName, OverwriteAppend);
Parameters
FilePath
Name of the path to the query and filter favorites file to import.
FileName
Name of the query and filter favorites file to import.
OverwriteAppend
String determining if the import of the query filter favorites overwrites existing favorites, or appends to existing favorites. Set to one of the following:
-
Overwrite to overwrite existing query filter favorites
-
Append to append to existing query filter favorites. If a query filter with the same name already exists, it is not overwritten by the query filter in the file
Example
AlarmClient1.Favorites.Import("c:\MyFavs\", "Favs.xml", "Overwrite");