Search Results for

    Show / Hide Table of Contents

    Interface ITermCollection

    Collection of terms

    Inherited Members
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IRequestableCollection.Requested
    IRequestableCollection.Length
    IRequestableCollection.RequestedItems
    IRequestableCollection.Clear()
    IDataModelCollectionDeleteByStringId.DeleteById(String)
    IDataModelCollectionDeleteByStringId.DeleteByIdAsync(String)
    IDataModelCollectionDeleteByStringId.DeleteByIdBatch(String)
    IDataModelCollectionDeleteByStringId.DeleteByIdBatchAsync(String)
    IDataModelCollectionDeleteByStringId.DeleteByIdBatch(Batch, String)
    IDataModelCollectionDeleteByStringId.DeleteByIdBatchAsync(Batch, String)
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface ITermCollection : IDataModelCollection<ITerm>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionDeleteByStringId, ISupportModules<ITermCollection>

    Methods

    Add(String, String)

    Adds a new term

    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
    ITerm

    Newly added term

    AddAsync(String, String)

    Adds a new term

    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

    AddBatch(Batch, String, String)

    Adds a new 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
    ITerm

    Newly added term

    AddBatch(String, String)

    Adds a new term

    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
    ITerm

    Newly added term

    AddBatchAsync(Batch, String, String)

    Adds a new term

    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

    AddBatchAsync(String, String)

    Adds a new 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

    GetById(String)

    Loads a term by id

    Declaration
    ITerm GetById(string id)
    Parameters
    System.String id

    Id of the term to load

    Returns
    ITerm

    Found term if any, null otherwise

    GetByIdAsync(String)

    Loads a term by id

    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

    RequestModuleExtensions.WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<String, String>, Action<Dictionary<String, String>>)
    RequestModuleExtensions.WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<String, String>>)
    QueryableExtensions.AsRequested<TSource>(IDataModelCollection<TSource>)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer