All docs
V20.2
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

AuditTrailService.CustomCreateObjectAuditProcessorsFactory Event

Handle this event to replace a default ObjectAuditProcessor for a particular object auditing mode with a custom processor.

Namespace: DevExpress.Persistent.AuditTrail

Assembly: DevExpress.Persistent.BaseImpl.v20.2.dll

Declaration

public event EventHandler<CustomCreateObjectAuditProcessorsFactoryEventArgs> CustomCreateObjectAuditProcessorsFactory
Public Event CustomCreateObjectAuditProcessorsFactory As EventHandler(Of CustomCreateObjectAuditProcessorsFactoryEventArgs)

Event Data

The CustomCreateObjectAuditProcessorsFactory event's data class is DevExpress.Persistent.AuditTrail.CustomCreateObjectAuditProcessorsFactoryEventArgs.

Remarks

The following example demonstrates how to handle this event in a WinForms application:

using DevExpress.Persistent.AuditTrail;
// ...
public class Program {
    [STAThread]
    public static void Main(string[] arguments) {
        // ...
        MainDemoWinApplication winApplication = new MainDemoWinApplication();
        AuditTrailService.Instance.CustomCreateObjectAuditProcessorsFactory += 
        new EventHandler<CustomCreateObjectAuditProcessorsFactoryEventArgs>(Instance_CustomCreateObjectAuditProcessorsFactory);
    }
    // ...
    static void Instance_CustomCreateObjectAuditProcessorsFactory(object sender, 
    CustomCreateObjectAuditProcessorsFactoryEventArgs e) {
        e.Factory = new ObjectAuditProcessorsFactory(ObjectAuditingMode.Full, 
        typeof(CustomAuditProcessor));
    }
}
See Also