Interface ITermGroupCollection
Collection of term groups
Assembly: PnP.Core.dll
Syntax
public interface ITermGroupCollection : IDataModelCollection<ITermGroup>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionDeleteByStringId, ISupportModules<ITermGroupCollection>
Methods
Declaration
ITermGroup Add(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
System.String
name
Display name of the group
|
System.String
description
Optional description of the group
|
TermGroupScope
scope
Optional scope of the group
|
Returns
Declaration
Task<ITermGroup> AddAsync(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
System.String
name
Display name of the group
|
System.String
description
Optional description of the group
|
TermGroupScope
scope
Optional scope of the group
|
Returns
Declaration
ITermGroup AddBatch(Batch batch, string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
Batch
batch
Batch to use
|
System.String
name
Display name of the group
|
System.String
description
Optional description of the group
|
TermGroupScope
scope
Optional scope of the group
|
Returns
Declaration
ITermGroup AddBatch(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
System.String
name
Display name of the group
|
System.String
description
Optional description of the group
|
TermGroupScope
scope
Optional scope of the group
|
Returns
Declaration
Task<ITermGroup> AddBatchAsync(Batch batch, string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
Batch
batch
Batch to use
|
System.String
name
Display name of the group
|
System.String
description
Optional description of the group
|
TermGroupScope
scope
Optional scope of the group
|
Returns
Declaration
Task<ITermGroup> AddBatchAsync(string name, string description = null, TermGroupScope scope = TermGroupScope.Global)
Parameters
System.String
name
Display name of the group
|
System.String
description
Optional description of the group
|
TermGroupScope
scope
Optional scope of the group
|
Returns
Method to select a term group by id
Declaration
ITermGroup GetById(string id, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
System.String
id
The id to search for
|
Expression<Func<ITermGroup, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
ITermGroup
The resulting term group instance, if any
|
Method to select a term group by id
Declaration
Task<ITermGroup> GetByIdAsync(string id, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
System.String
id
The id to search for
|
Expression<Func<ITermGroup, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<ITermGroup>
The resulting term group instance, if any
|
Method to select a term group by name
Declaration
ITermGroup GetByName(string name, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
System.String
name
The name to search for
|
Expression<Func<ITermGroup, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
ITermGroup
The resulting term group instance, if any
|
Method to select a term group by name
Declaration
Task<ITermGroup> GetByNameAsync(string name, params Expression<Func<ITermGroup, object>>[] selectors)
Parameters
System.String
name
The name to search for
|
Expression<Func<ITermGroup, System.Object>>[]
selectors
The expressions declaring the fields to select
|
Returns
Task<ITermGroup>
The resulting term group instance, if any
|
Extension Methods