Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeService

    Represents the ContentType Service, which is an easy access to operations involving IContentType

    Inheritance
    System.Object
    RepositoryService
    ScopeRepositoryService
    ContentTypeServiceBase
    ContentTypeServiceBase<IContentType, IContentTypeService>
    ContentTypeServiceBase<IContentTypeRepository, IContentType, IContentTypeService>
    Namespace: Umbraco.Core.Services.Implement
    Assembly: Umbraco.Core.dll
    Syntax
    public class ContentTypeService : ContentTypeServiceBase<IContentTypeRepository, IContentType, IContentTypeService>, IContentTypeService, IContentTypeBaseService<IContentType>, IContentTypeBaseService, IService

    Constructors

    View Source

    ContentTypeService(IScopeProvider, ILogger, IEventMessagesFactory, IContentService, IContentTypeRepository, IAuditRepository, IDocumentTypeContainerRepository, IEntityRepository)

    Declaration
    public ContentTypeService(IScopeProvider provider, ILogger logger, IEventMessagesFactory eventMessagesFactory, IContentService contentService, IContentTypeRepository repository, IAuditRepository auditRepository, IDocumentTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository)
    Parameters
    Type Name Description
    IScopeProvider provider
    ILogger logger
    IEventMessagesFactory eventMessagesFactory
    IContentService contentService
    IContentTypeRepository repository
    IAuditRepository auditRepository
    IDocumentTypeContainerRepository entityContainerRepository
    IEntityRepository entityRepository

    Properties

    View Source

    ContainedObjectType

    Declaration
    protected override Guid ContainedObjectType { get; }
    Property Value
    Type Description
    System.Guid
    View Source

    ReadLockIds

    Declaration
    protected override int[] ReadLockIds { get; }
    Property Value
    Type Description
    System.Int32[]
    View Source

    This

    Declaration
    protected override IContentTypeService This { get; }
    Property Value
    Type Description
    IContentTypeService
    View Source

    WriteLockIds

    Declaration
    protected override int[] WriteLockIds { get; }
    Property Value
    Type Description
    System.Int32[]

    Methods

    View Source

    DeleteItemsOfTypes(IEnumerable<Int32>)

    Declaration
    protected override void DeleteItemsOfTypes(IEnumerable<int> typeIds)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Int32> typeIds
    View Source

    GetAllContentTypeAliases(Guid[])

    Gets all content type aliases across content, media and member types.

    Declaration
    public IEnumerable<string> GetAllContentTypeAliases(params Guid[] guids)
    Parameters
    Type Name Description
    System.Guid[] guids

    Optional object types guid to restrict to content, and/or media, and/or member types.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    All content type aliases.

    Remarks

    Beware! Works across content, media and member types.

    View Source

    GetAllContentTypeIds(String[])

    Gets all content type id for aliases across content, media and member types.

    Declaration
    public IEnumerable<int> GetAllContentTypeIds(string[] aliases)
    Parameters
    Type Name Description
    System.String[] aliases

    Aliases to look for.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.Int32>

    All content type ids.

    Remarks

    Beware! Works across content, media and member types.

    View Source

    GetAllPropertyTypeAliases()

    Gets all property type aliases across content, media and member types.

    Declaration
    public IEnumerable<string> GetAllPropertyTypeAliases()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    All property type aliases.

    Remarks

    Beware! Works across content, media and member types.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentTypeService(IScopeProvider, ILogger, IEventMessagesFactory, IContentService, IContentTypeRepository, IAuditRepository, IDocumentTypeContainerRepository, IEntityRepository)
    • Properties
      • ContainedObjectType
      • ReadLockIds
      • This
      • WriteLockIds
    • Methods
      • DeleteItemsOfTypes(IEnumerable<Int32>)
      • GetAllContentTypeAliases(Guid[])
      • GetAllContentTypeIds(String[])
      • GetAllPropertyTypeAliases()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX