sType | (String) Type of the required information that has to be returned by the method.
"type" - The method returns system name of the storage technology used for writing to disk:
- "accessbackup" for Database Access backups (obsolete)
- "mssqlbackup" for Database MS SQL Server backups (obsolete)
- "promoticcyclic" for Promotic binary file cyclic
- "accesscyclic" for Database Access cyclic
- "mssqlcyclic" for Database MS SQL Server cyclic
- "oraclecyclic" for Database Oracle cyclic
- "mysqlcyclic" for Database MySQL cyclic
- "firebirdcyclic" for Database FireBird cyclic "activefilename" - If the "Storage type" configurator is set to storing to a disk file (Database Access backups (obsolete), Promotic binary file cyclic, Database Access cyclic), then the method returns the file name without path, otherwise the method returns the empty string "".
"activefilepath" - If the "Storage type" configurator is set to storing to a disk file (Database Access backups (obsolete), Promotic binary file cyclic, Database Access cyclic), then the method returns the file name with path, otherwise the method returns the empty string "".
"activedatabase" - If the "Storage type" configurator is set to storing to the database (Database Access backups (obsolete), Database MS SQL Server backups (obsolete), Database MS SQL Server cyclic, Database Oracle cyclic, Database MySQL cyclic, Database FireBird cyclic, Database Access cyclic), then the method returns the name of the database, where the data are stored, otherwise the method returns the empty string "". |
---|
var oTrend = pMe.Pm("/Trends");
var sType = oTrend.GetPersistInfo("type");
var sFileName = oTrend.GetPersistInfo("activefilename");
var sFilePath = oTrend.GetPersistInfo("activefilepath");
var sDatabase = oTrend.GetPersistInfo("activedatabase");
Pm.Debug("Storage technology: " + sType);
Pm.Debug("File name: " + sFileName);
Pm.Debug("The file name with the path: " + sFilePath);
Pm.Debug("Database: " + sDatabase);