Search Results for

    Show / Hide Table of Contents

    Interface IContentType

    Public interface to define a Content Type object of SharePoint Online

    Inherited Members
    IDataModel<IContentType>.Requested
    IDataModel<IContentType>.HasValue(String)
    IDataModel<IContentType>.HasChanged(String)
    IDataModel<IContentType>.IsPropertyAvailable(Expression<Func<IContentType, Object>>)
    IDataModel<IContentType>.ArePropertiesAvailable(Expression<Func<IContentType, Object>>[])
    IDataModel<IContentType>.EnsureProperties(Expression<Func<IContentType, Object>>[])
    IDataModel<IContentType>.EnsurePropertiesAsync(Expression<Func<IContentType, Object>>[])
    IDataModel<IContentType>.ExecuteRequestAsync(ApiRequest)
    IDataModel<IContentType>.ExecuteRequest(ApiRequest)
    IDataModel<IContentType>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<IContentType>.ExecuteRequestBatch(ApiRequest)
    IDataModel<IContentType>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<IContentType>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<IContentType>.GetBatchAsync(Batch, Expression<Func<IContentType, Object>>[])
    IDataModelGet<IContentType>.GetAsync(Expression<Func<IContentType, Object>>[])
    IDataModelLoad<IContentType>.LoadBatchAsync(Batch, Expression<Func<IContentType, Object>>[])
    IDataModelLoad<IContentType>.LoadAsync(Expression<Func<IContentType, Object>>[])
    IDataModelUpdate.UpdateBatchAsync()
    IDataModelUpdate.UpdateBatchAsync(Batch)
    IDataModelUpdate.UpdateAsync()
    IDataModelUpdate.UpdateBatch()
    IDataModelUpdate.UpdateBatch(Batch)
    IDataModelUpdate.Update()
    IDataModelDelete.DeleteBatchAsync()
    IDataModelDelete.DeleteBatchAsync(Batch)
    IDataModelDelete.DeleteAsync()
    IDataModelDelete.DeleteBatch()
    IDataModelDelete.DeleteBatch(Batch)
    IDataModelDelete.Delete()
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IContentType : IDataModel<IContentType>, IDataModelParent, IDataModelWithContext, ISupportModules<IContentType>, IDataModelGet<IContentType>, IDataModelLoad<IContentType>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel

    Properties

    All

    A special property used to add an asterisk to a $select statement

    Declaration
    object All { get; }
    Property Value
    System.Object

    ClientFormCustomFormatter

    Gets or Sets the Client Form Custom Formatter of the Content Type

    Declaration
    string ClientFormCustomFormatter { get; set; }
    Property Value
    System.String

    Description

    Gets or Sets the description of the Content Type

    Declaration
    string Description { get; set; }
    Property Value
    System.String

    DisplayFormClientSideComponentId

    The unique identifier of the client-side component defined with SharePoint Framework

    Declaration
    string DisplayFormClientSideComponentId { get; set; }
    Property Value
    System.String

    DisplayFormClientSideComponentProperties

    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
    System.String

    DisplayFormTemplateName

    Gets or Sets the Display Form template name of the Content Type

    Declaration
    string DisplayFormTemplateName { get; set; }
    Property Value
    System.String

    DisplayFormUrl

    Gets or Sets the Display Form URL of the Content Type

    Declaration
    string DisplayFormUrl { get; set; }
    Property Value
    System.String

    DocumentTemplate

    Gets or Sets the Document Template of the Content Type

    Declaration
    string DocumentTemplate { get; set; }
    Property Value
    System.String

    DocumentTemplateUrl

    Gets or Sets the DocumentTemplate URL of the Content Type

    Declaration
    string DocumentTemplateUrl { get; set; }
    Property Value
    System.String

    EditFormClientSideComponentId

    The unique identifier of the client-side component defined with SharePoint Framework

    Declaration
    string EditFormClientSideComponentId { get; set; }
    Property Value
    System.String

    EditFormClientSideComponentProperties

    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
    System.String

    EditFormTemplateName

    Gets or Sets the Edit Form template name of the Content Type

    Declaration
    string EditFormTemplateName { get; set; }
    Property Value
    System.String

    EditFormUrl

    Gets or Sets the Edit Form URL of the Content Type

    Declaration
    string EditFormUrl { get; set; }
    Property Value
    System.String

    FieldLinks

    Gets the collection of field links of the Content Type. Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IFieldLinkCollection FieldLinks { get; }
    Property Value
    IFieldLinkCollection

    Fields

    Gets the collection of fields of the Content Type. Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IFieldCollection Fields { get; }
    Property Value
    IFieldCollection

    Group

    Gets or Sets the group of the Content Type

    Declaration
    string Group { get; set; }
    Property Value
    System.String

    Hidden

    Gets or Sets that specifies whether the Content Type is hidden

    Declaration
    bool Hidden { get; set; }
    Property Value
    System.Boolean

    Id

    The unique ID of the Content Type as object

    Declaration
    string Id { get; }
    Property Value
    System.String

    JSLink

    Gets or Sets the JS Link of the Content Type

    Declaration
    string JSLink { get; set; }
    Property Value
    System.String

    MobileDisplayFormUrl

    Gets or Sets the Mobile Display Form URL of the Content Type

    Declaration
    string MobileDisplayFormUrl { get; set; }
    Property Value
    System.String

    MobileEditFormUrl

    Gets or Sets the Mobile Edit Form URL of the Content Type

    Declaration
    string MobileEditFormUrl { get; set; }
    Property Value
    System.String

    MobileNewFormUrl

    Gets or Sets the Mobile New Form URL of the Content Type

    Declaration
    string MobileNewFormUrl { get; set; }
    Property Value
    System.String

    Name

    Gets or Sets the name of the Content Type

    Declaration
    string Name { get; set; }
    Property Value
    System.String

    NewFormClientSideComponentId

    The unique identifier of the client-side component defined with SharePoint Framework

    Declaration
    string NewFormClientSideComponentId { get; set; }
    Property Value
    System.String

    NewFormClientSideComponentProperties

    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
    System.String

    NewFormTemplateName

    Gets or Sets the New Form template's name of the Content Type

    Declaration
    string NewFormTemplateName { get; set; }
    Property Value
    System.String

    NewFormUrl

    Gets or Sets the New Form URL of the Content Type

    Declaration
    string NewFormUrl { get; set; }
    Property Value
    System.String

    ReadOnly

    Gets or Sets whether the Content Type is read only

    Declaration
    bool ReadOnly { get; set; }
    Property Value
    System.Boolean

    SchemaXml

    Gets or Sets the Schema XML of the Content Type

    Declaration
    string SchemaXml { get; }
    Property Value
    System.String

    SchemaXmlWithResourceTokens

    Gets or Sets the Schema XML with resource tokens of the Content Type

    Declaration
    string SchemaXmlWithResourceTokens { get; set; }
    Property Value
    System.String

    Scope

    Gets or Sets the scope of the Content Type

    Declaration
    string Scope { get; set; }
    Property Value
    System.String

    Sealed

    Gets or Sets whether the Content Type is sealed

    Declaration
    bool Sealed { get; set; }
    Property Value
    System.Boolean

    StringId

    The unique ID of the Content Type as string

    Declaration
    string StringId { get; }
    Property Value
    System.String

    Methods

    AddField(IField)

    Adds a field to the content type

    Declaration
    void AddField(IField field)
    Parameters
    IField field

    IField to add to this content type

    AddFieldAsync(IField)

    Adds a field to the content type

    Declaration
    Task AddFieldAsync(IField field)
    Parameters
    IField field

    IField to add to this content type

    Returns
    Task

    AsDocumentSet()

    Returns the content type as a document set

    Declaration
    IDocumentSet AsDocumentSet()
    Returns
    IDocumentSet

    The content type as a document set

    AsDocumentSetAsync()

    Returns the content type as a document set

    Declaration
    Task<IDocumentSet> AsDocumentSetAsync()
    Returns
    Task<IDocumentSet>

    The content type as a document set

    IsPublished()

    Checks if a content type is published from the hub to the sites in the SharePoint environment

    Declaration
    bool IsPublished()
    Returns
    System.Boolean

    IsPublishedAsync()

    Checks if a content type is published from the hub to the sites in the SharePoint environment

    Declaration
    Task<bool> IsPublishedAsync()
    Returns
    Task<System.Boolean>

    Publish()

    Publishes a content type from the hub to the sites in the SharePoint environment

    Declaration
    void Publish()

    PublishAsync()

    Publishes a content type from the hub to the sites in the SharePoint environment

    Declaration
    Task PublishAsync()
    Returns
    Task

    Unpublish()

    Unublishes a content type from the hub to the sites in the SharePoint environment

    Declaration
    void Unpublish()

    UnpublishAsync()

    Unpublishes a content type from the hub to the sites in the SharePoint environment

    Declaration
    Task UnpublishAsync()
    Returns
    Task

    Extension Methods

    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.Get<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.Load<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.QueryProperties<TModel>(IDataModelLoad<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>>)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer