Interface IContentTypeCollection
Public interface to define a collection of ContentType objects of SharePoint Online
Assembly: PnP.Core.dll
Syntax
public interface IContentTypeCollection : IDataModelCollection<IContentType>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IContentType>, ISupportModules<IContentTypeCollection>
Methods
Declaration
IContentType Add(string id, string name, string description = null, string group = null)
Parameters
String
id
Id of the content type
|
String
name
Name of the content type
|
String
description
Description of the content type
|
String
group
Group of the content type
|
Returns
Declaration
Task<IContentType> AddAsync(string id, string name, string description = null, string group = null)
Parameters
String
id
Id of the content type
|
String
name
Name of the content type
|
String
description
Description of the content type
|
String
group
Group of the content type
|
Returns
Add an existing content type
Declaration
IContentType AddAvailableContentType(string id)
Parameters
String
id
Id of the content type
|
Returns
Add an existing content type
Declaration
Task<IContentType> AddAvailableContentTypeAsync(string id)
Parameters
String
id
Id of the content type
|
Returns
Add an existing content type
Declaration
IContentType AddAvailableContentTypeBatch(Batch batch, string id)
Parameters
Returns
Add an existing content type
Declaration
IContentType AddAvailableContentTypeBatch(string id)
Parameters
String
id
Id of the content type
|
Returns
Add an existing content type
Declaration
Task<IContentType> AddAvailableContentTypeBatchAsync(Batch batch, string id)
Parameters
Returns
Add an existing content type
Declaration
Task<IContentType> AddAvailableContentTypeBatchAsync(string id)
Parameters
String
id
Id of the content type
|
Returns
Add a content type from the content type hub
Declaration
ILongRunningOperation AddAvailableContentTypeFromHub(string id, AddContentTypeFromHubOptions options = null)
Parameters
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
Add a content type from the content type hub
Declaration
Task<ILongRunningOperation> AddAvailableContentTypeFromHubAsync(string id, AddContentTypeFromHubOptions options = null)
Parameters
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
Declaration
IContentType AddBatch(Batch batch, string id, string name, string description = null, string group = null)
Parameters
Batch
batch
Batch to use
|
String
id
Id of the content type
|
String
name
Name of the content type
|
String
description
Description of the content type
|
String
group
Group of the content type
|
Returns
Declaration
IContentType AddBatch(string id, string name, string description = null, string group = null)
Parameters
String
id
Id of the content type
|
String
name
Name of the content type
|
String
description
Description of the content type
|
String
group
Group of the content type
|
Returns
Declaration
Task<IContentType> AddBatchAsync(Batch batch, string id, string name, string description = null, string group = null)
Parameters
Batch
batch
Batch to use
|
String
id
Id of the content type
|
String
name
Name of the content type
|
String
description
Description of the content type
|
String
group
Group of the content type
|
Returns
Declaration
Task<IContentType> AddBatchAsync(string id, string name, string description = null, string group = null)
Parameters
String
id
Id of the content type
|
String
name
Name of the content type
|
String
description
Description of the content type
|
String
group
Group of the content type
|
Returns
Declaration
IDocumentSet AddDocumentSet(string id, string name, string description = null, string group = null, DocumentSetOptions options = null)
Parameters
String
id
Id of the document set
|
String
name
Name of the document set
|
String
description
Description of the document set
|
String
group
Group of the document set
|
DocumentSetOptions
options
Options for creating the document set
|
Returns
Declaration
Task<IDocumentSet> AddDocumentSetAsync(string id, string name, string description = null, string group = null, DocumentSetOptions options = null)
Parameters
String
id
Id of the document set
|
String
name
Name of the document set
|
String
description
Description of the document set
|
String
group
Group of the document set
|
DocumentSetOptions
options
Options for creating the document set
|
Returns
Extension Methods