Class IEditableSecurityDescriptorExtensions
Extension methods for the IEditableSecurityDescriptor interface.
Inheritance
Inherited Members
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public static class IEditableSecurityDescriptorExtensions
Methods
ToInherited(IEditableSecurityDescriptor)
Converts the security descriptor to inherited.
Declaration
public static void ToInherited(this IEditableSecurityDescriptor securityDescriptor)
Parameters
Type | Name | Description |
---|---|---|
IEditableSecurityDescriptor | securityDescriptor | The security descriptor. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | securityDescriptor |
System.ArgumentException | Cannot convert a security descriptor that's already inherited. |
ToLocal(IEditableSecurityDescriptor)
Converts the security descriptor to local (not inherited) and copies all inherited entries.
Declaration
public static void ToLocal(this IEditableSecurityDescriptor securityDescriptor)
Parameters
Type | Name | Description |
---|---|---|
IEditableSecurityDescriptor | securityDescriptor | The security descriptor. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | securityDescriptor |
System.ArgumentException | Cannot convert a security descriptor that's not inherited. |
ToLocal(IEditableSecurityDescriptor, Boolean)
Converts the security descriptor to local (not inherited) and copies all inherited entries if copyInheritedEntries
is set to true.
Declaration
public static void ToLocal(this IEditableSecurityDescriptor securityDescriptor, bool copyInheritedEntries)
Parameters
Type | Name | Description |
---|---|---|
IEditableSecurityDescriptor | securityDescriptor | The security descriptor. |
System.Boolean | copyInheritedEntries | if set to |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | securityDescriptor |
System.ArgumentException | Cannot convert a security descriptor that's not inherited. |