Search Results for

    Show / Hide Table of Contents

    Class ObjectSecurity

    Inheritance
    System.Object
    BaseModel
    ObjectSecurity
    Inherited Members
    BaseModel.ParentTemplate
    Namespace: PnP.Framework.Provisioning.Model
    Assembly: PnP.Framework.dll
    Syntax
    public class ObjectSecurity : BaseModel, IProvisioningTemplateDescendant

    Constructors

    ObjectSecurity()

    Constructor for ObjectSecurity class

    Declaration
    public ObjectSecurity()

    ObjectSecurity(IEnumerable<RoleAssignment>)

    Constructor for ObjectSecurity class

    Declaration
    public ObjectSecurity(IEnumerable<RoleAssignment> roleAssignments)
    Parameters
    IEnumerable<RoleAssignment> roleAssignments

    RoleAssignments for security component

    Properties

    ClearSubscopes

    Defines whether to clear subscopes or not while breaking role inheritance

    Declaration
    public Boolean ClearSubscopes { get; set; }
    Property Value
    Boolean

    CopyRoleAssignments

    Defines whether to copy role assignments or not while breaking role inheritance

    Declaration
    public Boolean CopyRoleAssignments { get; set; }
    Property Value
    Boolean

    RoleAssignments

    Role Assignments for a target Principal

    Declaration
    public RoleAssignmentCollection RoleAssignments { get; }
    Property Value
    RoleAssignmentCollection

    Methods

    Equals(ObjectSecurity)

    Compares ObjectSecurity object based on RoleAssignments, CopyRoleAssignments and ClearSubscopes properties.

    Declaration
    public bool Equals(ObjectSecurity other)
    Parameters
    ObjectSecurity other

    ObjectSecurity object

    Returns
    System.Boolean

    true if the ObjectSecurity object is equal to the current object; otherwise, false.

    Equals(Object)

    Compares object with ObjectSecurity

    Declaration
    public override bool Equals(object obj)
    Parameters
    System.Object obj

    Object that represents ObjectSecurity

    Returns
    System.Boolean

    true if the current object is equal to the ObjectSecurity

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    System.Int32

    Returns HashCode

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer