November Happy Hour will be moved to Thursday December 5th.

Class IContentSecurityDescriptorExtensions

Extensions methods for IContent which support IContentSecurityDescriptor

Inheritance
System.Object
IContentSecurityDescriptorExtensions
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: 10.10.4
Syntax
public static class IContentSecurityDescriptorExtensions

Methods

SaveSecurityInfo(IContent, IContentSecurityRepository, AccessControlList, SecuritySaveType)

Helper method to replace the ACL on any IContent using IContentSecurityRepository

Declaration
public static bool SaveSecurityInfo(this IContent content, IContentSecurityRepository contentSecurityRepository, AccessControlList accessControlList, SecuritySaveType securitySaveType)
Parameters
Type Name Description
IContent content

The content to save ACL for

IContentSecurityRepository contentSecurityRepository

The content security repository to used for saving the ACL

AccessControlList accessControlList

The access control list to be saved

SecuritySaveType securitySaveType

Type of the security save.

Returns
Type Description
System.Boolean

True if the type implements IContentSecurable; otherwise false

ToRawACEArray(IContent)

Converts the ACL of IContent to an RawACE

Declaration
public static RawACE[] ToRawACEArray(this IContent content)
Parameters
Type Name Description
IContent content

The content.

Returns
Type Description
RawACE[]

An array of security entries if the type implements IContentSecurable; otherwise an empty array