Click or drag to resize

clsImportTenantBatchLog Class

Import for table MPTenantBatchLog: Bucket to store events from batches locally or remote
Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportTenantBatchLog

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
[SerializableAttribute]
public class clsImportTenantBatchLog : clsImportBase

The clsImportTenantBatchLog type exposes the following members.

Constructors
  NameDescription
Public methodclsImportTenantBatchLog
Initializes a new instance of the clsImportTenantBatchLog class
Top
Properties
  NameDescription
Public propertyAuthorsMail
Authors Mail. non structured reference to the author
Public propertyComputerIP
Alternative to the computer name the ip address. Can also be filled parallel.
Public propertyComputerName
Computer Name = Machine name
Public propertyCreateDate
CreateDate
Public propertyCreateUser
CreateUser
Public propertyEnvironmentGUID
Use a GUID from an "Enviornment Landscape"
Public propertyEnvironmentID
Internal ID to show messagey by environment. User EnvironmentGUID with the GUID code for your environment.
Public propertyErrorCode
ErrorCode
Public propertyID
inetrnal id. will be created. Must be 0 for the import.
Public propertyLogText
Error Message or Info Message
Public propertyProcessName
Process Name of the batch or command.
Top
Methods
Remarks
Examples
Create a batch log entry
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());
    }
}
See Also