• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPublishedContentTypeCache

    Namespace: Umbraco.Cms.Core.PublishedCache
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPublishedContentTypeCache

    Methods

    View Source

    ClearAll()

    Clears the entire cache.

    Declaration
    void ClearAll()
    View Source

    ClearByDataTypeId(Int32)

    Clears all cached content types referencing a data type.

    Declaration
    virtual IEnumerable<IPublishedContentType> ClearByDataTypeId(int id)
    Parameters
    Type Name Description
    System.Int32 id

    The data type id to remove content types by

    Returns
    Type Description
    IEnumerable<IPublishedContentType>

    The removed content types

    View Source

    ClearContentType(Int32)

    Clears a cached content type.

    Declaration
    void ClearContentType(int id)
    Parameters
    Type Name Description
    System.Int32 id

    An identifier.

    View Source

    ClearContentTypes(IEnumerable<Int32>)

    Clears cached content types.

    Declaration
    virtual void ClearContentTypes(IEnumerable<int> ids)
    Parameters
    Type Name Description
    IEnumerable<System.Int32> ids

    ContentType IDs to clear

    View Source

    ClearDataType(Int32)

    Clears all cached content types referencing a data type.

    Declaration
    void ClearDataType(int id)
    Parameters
    Type Name Description
    System.Int32 id

    A data type identifier.

    View Source

    Get(PublishedItemType, Guid)

    Gets a published content type.

    Declaration
    IPublishedContentType Get(PublishedItemType itemType, Guid key)
    Parameters
    Type Name Description
    PublishedItemType itemType

    An item type.

    Guid key

    An key.

    Returns
    Type Description
    IPublishedContentType

    The published content type corresponding to the item key.

    View Source

    Get(PublishedItemType, Int32)

    Gets a published content type.

    Declaration
    IPublishedContentType Get(PublishedItemType itemType, int id)
    Parameters
    Type Name Description
    PublishedItemType itemType

    An item type.

    System.Int32 id

    An identifier.

    Returns
    Type Description
    IPublishedContentType

    The published content type corresponding to the item type and identifier.

    View Source

    Get(PublishedItemType, String)

    Gets a published content type.

    Declaration
    IPublishedContentType Get(PublishedItemType itemType, string alias)
    Parameters
    Type Name Description
    PublishedItemType itemType

    An item type.

    System.String alias

    An alias.

    Returns
    Type Description
    IPublishedContentType

    The published content type corresponding to the item type and alias.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • ClearAll()
      • ClearByDataTypeId(Int32)
      • ClearContentType(Int32)
      • ClearContentTypes(IEnumerable<Int32>)
      • ClearDataType(Int32)
      • Get(PublishedItemType, Guid)
      • Get(PublishedItemType, Int32)
      • Get(PublishedItemType, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX