SerializationFormatRule Class

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

Namespace: DevExpress.XtraReports.Security

Assembly: DevExpress.XtraReports.v21.1.dll

Declaration

public class SerializationFormatRule :
    IAccessRule

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