Class RoleAssignment
Role Assignment for a target Principal
Inherited Members
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 |