ProtectedRange.CreateSecurityDescriptor(IEnumerable<EditRangePermission>) Method
Creates a security descriptor for the current protected range.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
permissions | IEnumerable<EditRangePermission> | A collection of EditRangePermission objects specifying user and access rights. |
Returns
Type | Description |
---|---|
String | A string that stores information about a security descriptor in SDDL (Security Descriptor Definition Language) format. |
Remarks
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateSecurityDescriptor(IEnumerable<EditRangePermission>) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.