Search Results for

    Show / Hide Table of Contents

    Interface IContentTypeCollection

    Public interface to define a collection of ContentType objects of SharePoint Online

    Inherited Members
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IRequestableCollection.Requested
    IRequestableCollection.Length
    IRequestableCollection.RequestedItems
    IRequestableCollection.Clear()
    IDataModelCollectionLoad<IContentType>.LoadAsync(Expression<Func<IContentType, Object>>[])
    IDataModelCollectionLoad<IContentType>.LoadBatchAsync(Batch, Expression<Func<IContentType, Object>>[])
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IContentTypeCollection : IDataModelCollection<IContentType>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IContentType>, ISupportModules<IContentTypeCollection>

    Methods

    Add(String, String, String, String)

    Add a content type Check the documentation for a well formed Content Type Id: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v=office.14)

    Declaration
    IContentType Add(string id, string name, string description = null, string group = null)
    Parameters
    System.String id

    Id of the content type

    System.String name

    Name of the content type

    System.String description

    Description of the content type

    System.String group

    Group of the content type

    Returns
    IContentType

    The newly added content type

    AddAsync(String, String, String, String)

    Add a content type Check the documentation for a well formed Content Type Id: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v=office.14)

    Declaration
    Task<IContentType> AddAsync(string id, string name, string description = null, string group = null)
    Parameters
    System.String id

    Id of the content type

    System.String name

    Name of the content type

    System.String description

    Description of the content type

    System.String group

    Group of the content type

    Returns
    Task<IContentType>

    The newly added content type

    AddAvailableContentType(String)

    Add an existing content type

    Declaration
    IContentType AddAvailableContentType(string id)
    Parameters
    System.String id

    Id of the content type

    Returns
    IContentType

    The newly added content type

    AddAvailableContentTypeAsync(String)

    Add an existing content type

    Declaration
    Task<IContentType> AddAvailableContentTypeAsync(string id)
    Parameters
    System.String id

    Id of the content type

    Returns
    Task<IContentType>

    The newly added content type

    AddAvailableContentTypeBatch(Batch, String)

    Add an existing content type

    Declaration
    IContentType AddAvailableContentTypeBatch(Batch batch, string id)
    Parameters
    Batch batch

    Batch to use

    System.String id

    Id of the content type

    Returns
    IContentType

    The newly added content type

    AddAvailableContentTypeBatch(String)

    Add an existing content type

    Declaration
    IContentType AddAvailableContentTypeBatch(string id)
    Parameters
    System.String id

    Id of the content type

    Returns
    IContentType

    The newly added content type

    AddAvailableContentTypeBatchAsync(Batch, String)

    Add an existing content type

    Declaration
    Task<IContentType> AddAvailableContentTypeBatchAsync(Batch batch, string id)
    Parameters
    Batch batch

    Batch to use

    System.String id

    Id of the content type

    Returns
    Task<IContentType>

    The newly added content type

    AddAvailableContentTypeBatchAsync(String)

    Add an existing content type

    Declaration
    Task<IContentType> AddAvailableContentTypeBatchAsync(string id)
    Parameters
    System.String id

    Id of the content type

    Returns
    Task<IContentType>

    The newly added content type

    AddAvailableContentTypeFromHub(String, AddContentTypeFromHubOptions)

    Add a content type from the content type hub

    Declaration
    ILongRunningOperation AddAvailableContentTypeFromHub(string id, AddContentTypeFromHubOptions options = null)
    Parameters
    System.String id

    Id of the content type

    AddContentTypeFromHubOptions options

    Getting a content type from the hub might be async depending on current system load, optionnally provide options to control how if and how the waiting will happen

    Returns
    ILongRunningOperation

    Null if the add was actually done, a ILongRunningOperation instance otherwise (e.g. when async and you've not chosen to wait for completion)

    AddAvailableContentTypeFromHubAsync(String, AddContentTypeFromHubOptions)

    Add a content type from the content type hub

    Declaration
    Task<ILongRunningOperation> AddAvailableContentTypeFromHubAsync(string id, AddContentTypeFromHubOptions options = null)
    Parameters
    System.String id

    Id of the content type

    AddContentTypeFromHubOptions options

    Getting a content type from the hub might be async depending on current system load, optionnally provide options to control how if and how the waiting will happen

    Returns
    Task<ILongRunningOperation>

    Null if the add was actually done, a ILongRunningOperation instance otherwise (e.g. when async and you've not chosen to wait for completion)

    AddBatch(Batch, String, String, String, String)

    Add a content type Check the documentation for a well formed Content Type Id: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v=office.14)

    Declaration
    IContentType AddBatch(Batch batch, string id, string name, string description = null, string group = null)
    Parameters
    Batch batch

    Batch to use

    System.String id

    Id of the content type

    System.String name

    Name of the content type

    System.String description

    Description of the content type

    System.String group

    Group of the content type

    Returns
    IContentType

    The newly added content type

    AddBatch(String, String, String, String)

    Add a content type Check the documentation for a well formed Content Type Id: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v=office.14)

    Declaration
    IContentType AddBatch(string id, string name, string description = null, string group = null)
    Parameters
    System.String id

    Id of the content type

    System.String name

    Name of the content type

    System.String description

    Description of the content type

    System.String group

    Group of the content type

    Returns
    IContentType

    The newly added content type

    AddBatchAsync(Batch, String, String, String, String)

    Add a content type Check the documentation for a well formed Content Type Id: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v=office.14)

    Declaration
    Task<IContentType> AddBatchAsync(Batch batch, string id, string name, string description = null, string group = null)
    Parameters
    Batch batch

    Batch to use

    System.String id

    Id of the content type

    System.String name

    Name of the content type

    System.String description

    Description of the content type

    System.String group

    Group of the content type

    Returns
    Task<IContentType>

    The newly added content type

    AddBatchAsync(String, String, String, String)

    Add a content type Check the documentation for a well formed Content Type Id: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa543822(v=office.14)

    Declaration
    Task<IContentType> AddBatchAsync(string id, string name, string description = null, string group = null)
    Parameters
    System.String id

    Id of the content type

    System.String name

    Name of the content type

    System.String description

    Description of the content type

    System.String group

    Group of the content type

    Returns
    Task<IContentType>

    The newly added content type

    AddDocumentSet(String, String, String, String, DocumentSetOptions)

    Creates a document set

    Declaration
    IDocumentSet AddDocumentSet(string id, string name, string description = null, string group = null, DocumentSetOptions options = null)
    Parameters
    System.String id

    Id of the document set

    System.String name

    Name of the document set

    System.String description

    Description of the document set

    System.String group

    Group of the document set

    DocumentSetOptions options

    Options for creating the document set

    Returns
    IDocumentSet

    The newly added document set

    AddDocumentSetAsync(String, String, String, String, DocumentSetOptions)

    Creates a document set

    Declaration
    Task<IDocumentSet> AddDocumentSetAsync(string id, string name, string description = null, string group = null, DocumentSetOptions options = null)
    Parameters
    System.String id

    Id of the document set

    System.String name

    Name of the document set

    System.String description

    Description of the document set

    System.String group

    Group of the document set

    DocumentSetOptions options

    Options for creating the document set

    Returns
    Task<IDocumentSet>

    The newly added document set

    Extension Methods

    DataModelCollectionLoadExtensions.LoadBatchAsync<TModel>(IDataModelCollectionLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelCollectionLoadExtensions.LoadBatchAsync<TModel>(IDataModelCollectionLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelCollectionLoadExtensions.LoadBatch<TModel>(IDataModelCollectionLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelCollectionLoadExtensions.LoadBatch<TModel>(IDataModelCollectionLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelCollectionLoadExtensions.Load<TModel>(IDataModelCollectionLoad<TModel>, Expression<Func<TModel, Object>>[])
    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