Skip to main content
A newer version of this page is available. .

SerializationFormatRule Class

A rule that allows or denies a report layout serialization format.

Namespace: DevExpress.XtraReports.Security

Assembly: DevExpress.XtraReports.v19.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public class SerializationFormatRule :
    IAccessRule

The following members return SerializationFormatRule objects:

Remarks

You can use the static Allow(SerializationFormat[]) or Deny(SerializationFormat[]) method to create serialization format rules. Use the SetRules(IAccessRule[]) method to register these rules.

Examples:

// Only XML report layout serialization format is allowed
DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Allow(SerializationFormat.Xml));
// CodeDOM report layout serialization format is denied
DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Deny(SerializationFormat.CodeDom));

Implements

Inheritance

Object
SerializationFormatRule
See Also