clsImportTenantBatchLog Class |
Namespace: MARIInterface
The clsImportTenantBatchLog type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportTenantBatchLog | Initializes a new instance of the clsImportTenantBatchLog class |
| Name | Description | |
|---|---|---|
| AuthorsMail | Authors Mail. non structured reference to the author | |
| ComputerIP | Alternative to the computer name the ip address. Can also be filled parallel. | |
| ComputerName | Computer Name = Machine name | |
| CreateDate | CreateDate | |
| CreateUser | CreateUser | |
| EnvironmentGUID |
Use a GUID from an "Enviornment Landscape"
| |
| EnvironmentID | Internal ID to show messagey by environment. User EnvironmentGUID with the GUID code for your environment. | |
| ErrorCode | ErrorCode | |
| ID | inetrnal id. will be created. Must be 0 for the import. | |
| LogText | Error Message or Info Message | |
| ProcessName | Process Name of the batch or command. |
| Name | Description | |
|---|---|---|
| bReadFromDB | (Overrides clsImportBasebReadFromDB(MPInterface, String).) | |
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
public bool CreateTenantBatchLogEntry() { clsImportTenantBatchLog oBatchLogEntry = new clsImportTenantBatchLog(); oBatchLogEntry.EnvironmentID = 1; //select EnvironmentID FROM MPTenantEnvironments oBatchLogEntry.ErrorCode = clsImportTenantBatchLog.eTenantErrorCode.LogInfoMessage; oBatchLogEntry.ProcessName = "StartBackup.cmd"; oBatchLogEntry.AuthorsMail = "admin@server1.com"; oBatchLogEntry.ComputerName = "SQLSERVER1"; oBatchLogEntry.LogText = "backup startet"; if (oMPInterface.bImportTenantBatchLog(oBatchLogEntry, clsImportBase.eImportMode.ValidateAndImport)) { return true; } else { throw new Exception(oMPInterface.oErrors.PrintErrors()); } }