Interface IRoleDefinitionCollection
Public interface to define a collection of SharePoint RoleDefinitions
Assembly: PnP.Core.dll
Syntax
public interface IRoleDefinitionCollection : IDataModelCollection<IRoleDefinition>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IRoleDefinition>, ISupportModules<IRoleDefinitionCollection>
Methods
Adds a new role definition
Declaration
IRoleDefinition Add(string name, RoleType roleTypeKind, PermissionKind[] permissions, string description = null, bool hidden = false, int order = 0)
Parameters
System.String
name
|
RoleType
roleTypeKind
|
PermissionKind[]
permissions
|
System.String
description
|
System.Boolean
hidden
|
System.Int32
order
|
Returns
Adds a new role definition
Declaration
Task<IRoleDefinition> AddAsync(string name, RoleType roleTypeKind, PermissionKind[] permissions, string description = null, bool hidden = false, int order = 0)
Parameters
System.String
name
|
RoleType
roleTypeKind
|
PermissionKind[]
permissions
|
System.String
description
|
System.Boolean
hidden
|
System.Int32
order
|
Returns
Adds a new role definition
Declaration
IRoleDefinition AddBatch(Batch batch, string name, RoleType roleTypeKind, PermissionKind[] permissions, string description = null, bool hidden = false, int order = 0)
Parameters
Batch
batch
|
System.String
name
|
RoleType
roleTypeKind
|
PermissionKind[]
permissions
|
System.String
description
|
System.Boolean
hidden
|
System.Int32
order
|
Returns
Adds a new role definition
Declaration
IRoleDefinition AddBatch(string name, RoleType roleTypeKind, PermissionKind[] permissions, string description = null, bool hidden = false, int order = 0)
Parameters
System.String
name
|
RoleType
roleTypeKind
|
PermissionKind[]
permissions
|
System.String
description
|
System.Boolean
hidden
|
System.Int32
order
|
Returns
Adds a new role definition
Declaration
Task<IRoleDefinition> AddBatchAsync(Batch batch, string name, RoleType roleTypeKind, PermissionKind[] permissions, string description = null, bool hidden = false, int order = 0)
Parameters
Batch
batch
|
System.String
name
|
RoleType
roleTypeKind
|
PermissionKind[]
permissions
|
System.String
description
|
System.Boolean
hidden
|
System.Int32
order
|
Returns
Adds a new role definition
Declaration
Task<IRoleDefinition> AddBatchAsync(string name, RoleType roleTypeKind, PermissionKind[] permissions, string description = null, bool hidden = false, int order = 0)
Parameters
System.String
name
|
RoleType
roleTypeKind
|
PermissionKind[]
permissions
|
System.String
description
|
System.Boolean
hidden
|
System.Int32
order
|
Returns
Extension Methods