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

SerializationFormatRule.Deny(SerializationFormat[]) Method

Creates the SerializationFormatRule that prohibits the specified report layout serialization format(s).

Namespace: DevExpress.XtraReports.Security

Assembly: DevExpress.XtraReports.v19.1.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core

Declaration

public static SerializationFormatRule Deny(
    params SerializationFormat[] formats
)

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