The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

ProtectedRange.CreateSecurityDescriptor(IEnumerable<EditRangePermission>) Method

Creates a security descriptor for the current protected range.

Namespace: DevExpress.Spreadsheet

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

Declaration

string CreateSecurityDescriptor(
    IEnumerable<EditRangePermission> permissions
)
Function CreateSecurityDescriptor(
    permissions As IEnumerable(Of EditRangePermission)
) As String
string CreateSecurityDescriptor(
    IEnumerable<EditRangePermission> permissions
)
Function CreateSecurityDescriptor(
    permissions As IEnumerable(Of EditRangePermission)
) As String

Parameters

Name Type Description
permissions IEnumerable<EditRangePermission>

A collection of EditRangePermission objects specifying user and access rights.

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.

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.

See Also