Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IContentTypeBaseServiceProvider

    Provides the IContentTypeBaseService corresponding to an IContentBase object.

    Namespace: Umbraco.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IContentTypeBaseServiceProvider

    Methods

    View Source

    For(IContentBase)

    Gets the content type service base managing types for the specified content base.

    Declaration
    IContentTypeBaseService For(IContentBase contentBase)
    Parameters
    Type Name Description
    IContentBase contentBase
    Returns
    Type Description
    IContentTypeBaseService
    Remarks

    If contentBase is an IContent, this returns the IContentTypeService, and if it's an IMedia, this returns the IMediaTypeService, etc.

    Services are returned as IContentTypeBaseService and can be used to retrieve the content / media / whatever type as IContentTypeComposition.

    View Source

    GetContentTypeOf(IContentBase)

    Gets the content type of an IContentBase object.

    Declaration
    IContentTypeComposition GetContentTypeOf(IContentBase contentBase)
    Parameters
    Type Name Description
    IContentBase contentBase
    Returns
    Type Description
    IContentTypeComposition
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • For(IContentBase)
      • GetContentTypeOf(IContentBase)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX