Skip to main content

SerializationFormatRule.Allow(SerializationFormat[]) Method

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

Namespace: DevExpress.XtraReports.Security

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public static SerializationFormatRule Allow(
    params SerializationFormat[] formats
)

Parameters

Name Type Description
formats SerializationFormat[]

An array of allowed report layout serialization formats.

Returns

Type Description
SerializationFormatRule

An instance of the SerializationFormatRule class.

Remarks

You can pass nothing as the Allow method’s parameter to create a rule that permits all report layout serialization formats:

DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Allow()); 

Pass the permitted formats as the Allow method’s parameter:

DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Allow(SerializationFormat.CodeDom)); 
See Also