Interface ITermGroupCollection
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Collection of term groups
public interface ITermGroupCollection : IQueryable<ITermGroup>, IQueryable, IAsyncEnumerable<ITermGroup>, IDataModelCollection<ITermGroup>, IEnumerable<ITermGroup>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionDeleteByStringId, ISupportModules<ITermGroupCollection>
- Inherited Members
- Extension Methods
Methods
Add(string, string, TermGroupScope)
Adds a new term group
ITermGroup Add(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
namestringDisplay name of the group
descriptionstringOptional description of the group
scopeTermGroupScopeOptional scope of the group
Returns
- ITermGroup
Newly added group
AddAsync(string, string, TermGroupScope)
Adds a new term group
Task<ITermGroup> AddAsync(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
namestringDisplay name of the group
descriptionstringOptional description of the group
scopeTermGroupScopeOptional scope of the group
Returns
- Task<ITermGroup>
Newly added group
AddBatch(Batch, string, string, TermGroupScope)
Adds a new term group
ITermGroup AddBatch(Batch batch, string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
batchBatchBatch to use
namestringDisplay name of the group
descriptionstringOptional description of the group
scopeTermGroupScopeOptional scope of the group
Returns
- ITermGroup
Newly added group
AddBatch(string, string, TermGroupScope)
Adds a new term group
ITermGroup AddBatch(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
namestringDisplay name of the group
descriptionstringOptional description of the group
scopeTermGroupScopeOptional scope of the group
Returns
- ITermGroup
Newly added group
AddBatchAsync(Batch, string, string, TermGroupScope)
Adds a new term group
Task<ITermGroup> AddBatchAsync(Batch batch, string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
batchBatchBatch to use
namestringDisplay name of the group
descriptionstringOptional description of the group
scopeTermGroupScopeOptional scope of the group
Returns
- Task<ITermGroup>
Newly added group
AddBatchAsync(string, string, TermGroupScope)
Adds a new term group
Task<ITermGroup> AddBatchAsync(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
namestringDisplay name of the group
descriptionstringOptional description of the group
scopeTermGroupScopeOptional scope of the group
Returns
- Task<ITermGroup>
Newly added group
GetById(string, params Expression<Func<ITermGroup, object>>[])
Method to select a term group by id
ITermGroup GetById(string id, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
idstringThe id to search for
selectorsExpression<Func<ITermGroup, object>>[]The expressions declaring the fields to select
Returns
- ITermGroup
The resulting term group instance, if any
GetByIdAsync(string, params Expression<Func<ITermGroup, object>>[])
Method to select a term group by id
Task<ITermGroup> GetByIdAsync(string id, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
idstringThe id to search for
selectorsExpression<Func<ITermGroup, object>>[]The expressions declaring the fields to select
Returns
- Task<ITermGroup>
The resulting term group instance, if any
GetByName(string, params Expression<Func<ITermGroup, object>>[])
Method to select a term group by name
ITermGroup GetByName(string name, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
namestringThe name to search for
selectorsExpression<Func<ITermGroup, object>>[]The expressions declaring the fields to select
Returns
- ITermGroup
The resulting term group instance, if any
GetByNameAsync(string, params Expression<Func<ITermGroup, object>>[])
Method to select a term group by name
Task<ITermGroup> GetByNameAsync(string name, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
namestringThe name to search for
selectorsExpression<Func<ITermGroup, object>>[]The expressions declaring the fields to select
Returns
- Task<ITermGroup>
The resulting term group instance, if any