SerializationFormatRule.Deny(SerializationFormat[]) Method
Creates the SerializationFormatRule that prohibits the specified report layout serialization format(s).
Namespace: DevExpress.XtraReports.Security
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
formats | SerializationFormat[] | An array of prohibited report layout serialization formats. |
Returns
Type | Description |
---|---|
SerializationFormatRule | An instance of the SerializationFormatRule class. |
Remarks
You can pass nothing as the Deny method’s parameter to create a rule that prohibits all report layout serialization formats:
DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Deny());
Pass the prohibited formats as the Deny method’s parameter:
DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Deny(SerializationFormat.CodeDom));
See Also