Class IEditableSecurityDescriptorExtensions
Extension methods for the IEditableSecurityDescriptor interface.
Inheritance
System.Object
IEditableSecurityDescriptorExtensions
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class IEditableSecurityDescriptorExtensions : Object
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. |