.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ProtectedRange.CreateSecurityDescriptor(IEnumerable<EditRangePermission>) Method

Creates a security descriptor for the current protected range.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll


string CreateSecurityDescriptor(
    IEnumerable<EditRangePermission> permissions


Name Type Description
permissions IEnumerable<EditRangePermission>

A collection of EditRangePermission objects specifying user and access rights.


Type Description

A string that stores information about a security descriptor in SDDL (Security Descriptor Definition Language) format.


The CreateSecurityDescriptor method creates a security descriptor containing information on users and respective access rights (defined in the EditRangePermission object). Use the ProtectedRange.SecurityDescriptor property to associate security descriptor with the protected range.

Access rights are in effect when the worksheet is protected (use the Worksheet.Protect method to apply protection to the worksheet).

Users and groups not listed in the range permissions must enter a password specified by the ProtectedRange.SetPassword method to edit the range.

See Also