Search Results for

    Show / Hide Table of Contents

    Class RoleAssignment

    Role Assignment for a target Principal

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

    Properties

    Principal

    Defines the Role to which the assignment will apply

    Declaration
    public String Principal { get; set; }
    Property Value
    String

    Remove

    Allows to remove a role assignment, instead of adding it. It is an optional attribute, and by default it assumes a value of false.

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

    RoleDefinition

    Defines the Role to which the assignment will apply

    Declaration
    public String RoleDefinition { get; set; }
    Property Value
    String

    Methods

    Equals(RoleAssignment)

    Compares RoleAssignment object based on Principal and RoleDefinition

    Declaration
    public bool Equals(RoleAssignment other)
    Parameters
    RoleAssignment other

    RoleAssignment object

    Returns
    System.Boolean

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

    Equals(Object)

    Compares object with RoleAssignment

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

    Object that represents RoleAssignment

    Returns
    System.Boolean

    true if the current object is equal to the RoleAssignment

    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