SerializationFormatRule Class
A rule that allows or denies a report layout serialization format.
Namespace: DevExpress.XtraReports.Security
Assembly: DevExpress.XtraReports.v24.1.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
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));
Inheritance
Object
SerializationFormatRule
See Also