Class IEditableSecurityDescriptorExtensions

Extension methods for the IEditableSecurityDescriptor interface.

Inheritance
System.Object
IEditableSecurityDescriptorExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
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 true all inherited entries are copied locally.

Exceptions
Type Condition
System.ArgumentNullException

securityDescriptor

System.ArgumentException

Cannot convert a security descriptor that's not inherited.