Interface IContentType
Public interface to define a Content Type object of SharePoint Online
Assembly: PnP.Core.dll
Syntax
public interface IContentType : IDataModel<IContentType>, IDataModelParent, IDataModelWithContext, ISupportModules<IContentType>, IDataModelGet<IContentType>, IDataModelLoad<IContentType>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
Properties
A special property used to add an asterisk to a $select statement
Declaration
Property Value
Gets or Sets the Client Form Custom Formatter of the Content Type
Declaration
string ClientFormCustomFormatter { get; set; }
Property Value
Gets or Sets the description of the Content Type
Declaration
string Description { get; set; }
Property Value
The unique identifier of the client-side component defined with SharePoint Framework
Declaration
string DisplayFormClientSideComponentId { get; set; }
Property Value
This property is only used when a DisplayFormClientSideComponentId is specified. It is optional.
If non-empty, the string must contain a JSON object with custom initialization properties
whose format and meaning are defined by the client-side component.
Declaration
string DisplayFormClientSideComponentProperties { get; set; }
Property Value
Gets or Sets the Display Form template name of the Content Type
Declaration
string DisplayFormTemplateName { get; set; }
Property Value
Gets or Sets the Display Form URL of the Content Type
Declaration
string DisplayFormUrl { get; set; }
Property Value
Gets or Sets the Document Template of the Content Type
Declaration
string DocumentTemplate { get; set; }
Property Value
Gets or Sets the DocumentTemplate URL of the Content Type
Declaration
string DocumentTemplateUrl { get; set; }
Property Value
The unique identifier of the client-side component defined with SharePoint Framework
Declaration
string EditFormClientSideComponentId { get; set; }
Property Value
This property is only used when a EditFormClientSideComponentId is specified. It is optional.
If non-empty, the string must contain a JSON object with custom initialization properties
whose format and meaning are defined by the client-side component.
Declaration
string EditFormClientSideComponentProperties { get; set; }
Property Value
Gets or Sets the Edit Form template name of the Content Type
Declaration
string EditFormTemplateName { get; set; }
Property Value
Gets or Sets the Edit Form URL of the Content Type
Declaration
string EditFormUrl { get; set; }
Property Value
Declaration
IFieldLinkCollection FieldLinks { get; }
Property Value
Declaration
IFieldCollection Fields { get; }
Property Value
Gets or Sets the group of the Content Type
Declaration
string Group { get; set; }
Property Value
Gets or Sets that specifies whether the Content Type is hidden
Declaration
bool Hidden { get; set; }
Property Value
The unique ID of the Content Type as object
Declaration
Property Value
Gets or Sets the JS Link of the Content Type
Declaration
string JSLink { get; set; }
Property Value
Gets or Sets the Mobile Display Form URL of the Content Type
Declaration
string MobileDisplayFormUrl { get; set; }
Property Value
Gets or Sets the Mobile Edit Form URL of the Content Type
Declaration
string MobileEditFormUrl { get; set; }
Property Value
Gets or Sets the Mobile New Form URL of the Content Type
Declaration
string MobileNewFormUrl { get; set; }
Property Value
Gets or Sets the name of the Content Type
Declaration
string Name { get; set; }
Property Value
The unique identifier of the client-side component defined with SharePoint Framework
Declaration
string NewFormClientSideComponentId { get; set; }
Property Value
This property is only used when a NewFormClientSideComponentId is specified. It is optional.
If non-empty, the string must contain a JSON object with custom initialization properties
whose format and meaning are defined by the client-side component.
Declaration
string NewFormClientSideComponentProperties { get; set; }
Property Value
Gets or Sets the New Form template's name of the Content Type
Declaration
string NewFormTemplateName { get; set; }
Property Value
Gets or Sets the New Form URL of the Content Type
Declaration
string NewFormUrl { get; set; }
Property Value
Gets or Sets whether the Content Type is read only
Declaration
bool ReadOnly { get; set; }
Property Value
Gets or Sets the Schema XML of the Content Type
Declaration
string SchemaXml { get; }
Property Value
Gets or Sets the Schema XML with resource tokens of the Content Type
Declaration
string SchemaXmlWithResourceTokens { get; set; }
Property Value
Gets or Sets the scope of the Content Type
Declaration
string Scope { get; set; }
Property Value
Gets or Sets whether the Content Type is sealed
Declaration
bool Sealed { get; set; }
Property Value
The unique ID of the Content Type as string
Declaration
Property Value
Methods
Adds a field to the content type
Declaration
void AddField(IField field)
Parameters
Adds a field to the content type
Declaration
Task AddFieldAsync(IField field)
Parameters
Returns
Returns the content type as a document set
Declaration
IDocumentSet AsDocumentSet()
Returns
Returns the content type as a document set
Declaration
Task<IDocumentSet> AsDocumentSetAsync()
Returns
Checks if a content type is published from the hub to the sites in the SharePoint environment
Declaration
Returns
Checks if a content type is published from the hub to the sites in the SharePoint environment
Declaration
Task<bool> IsPublishedAsync()
Returns
Publishes a content type from the hub to the sites in the SharePoint environment
Declaration
Publishes a content type from the hub to the sites in the SharePoint environment
Declaration
Returns
Unublishes a content type from the hub to the sites in the SharePoint environment
Declaration
Unpublishes a content type from the hub to the sites in the SharePoint environment
Declaration
Returns
Extension Methods