Interface ITermCollection
Assembly: PnP.Core.dll
Syntax
public interface ITermCollection : IDataModelCollection<ITerm>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionDeleteByStringId, ISupportModules<ITermCollection>
Methods
Declaration
ITerm Add(string name, string description = null)
Parameters
System.String
name
Name of the term
|
System.String
description
Optional description of the term
|
Returns
Declaration
Task<ITerm> AddAsync(string name, string description = null)
Parameters
System.String
name
Name of the term
|
System.String
description
Optional description of the term
|
Returns
Task<ITerm>
Newly added term
|
Declaration
ITerm AddBatch(Batch batch, string name, string description = null)
Parameters
Batch
batch
Batch to use
|
System.String
name
Name of the term
|
System.String
description
Optional description of the term
|
Returns
Declaration
ITerm AddBatch(string name, string description = null)
Parameters
System.String
name
Name of the term
|
System.String
description
Optional description of the term
|
Returns
Declaration
Task<ITerm> AddBatchAsync(Batch batch, string name, string description = null)
Parameters
Batch
batch
Batch to use
|
System.String
name
Name of the term
|
System.String
description
Optional description of the term
|
Returns
Task<ITerm>
Newly added term
|
Declaration
Task<ITerm> AddBatchAsync(string name, string description = null)
Parameters
System.String
name
Name of the term
|
System.String
description
Optional description of the term
|
Returns
Task<ITerm>
Newly added term
|
Declaration
Parameters
System.String
id
Id of the term to load
|
Returns
ITerm
Found term if any, null otherwise
|
Declaration
Task<ITerm> GetByIdAsync(string id)
Parameters
System.String
id
Id of the term to load
|
Returns
Task<ITerm>
Found term if any, null otherwise
|
Extension Methods