Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeChangeExtensions

    Extension methods for content type changes.

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class ContentTypeChangeExtensions

    Methods

    View Source

    HasType(ContentTypeChangeTypes, ContentTypeChangeTypes)

    Determines whether the change includes the specified type.

    Declaration
    public static bool HasType(this ContentTypeChangeTypes change, ContentTypeChangeTypes type)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    ContentTypeChangeTypes type

    The type to look for.

    Returns
    Type Description
    bool

    true if the change includes the type; otherwise, false.

    View Source

    HasTypesAll(ContentTypeChangeTypes, ContentTypeChangeTypes)

    Determines whether the change includes all of the specified types.

    Declaration
    public static bool HasTypesAll(this ContentTypeChangeTypes change, ContentTypeChangeTypes types)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    ContentTypeChangeTypes types

    The types to look for.

    Returns
    Type Description
    bool

    true if the change includes all types; otherwise, false.

    View Source

    HasTypesAny(ContentTypeChangeTypes, ContentTypeChangeTypes)

    Determines whether the change includes any of the specified types.

    Declaration
    public static bool HasTypesAny(this ContentTypeChangeTypes change, ContentTypeChangeTypes types)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    ContentTypeChangeTypes types

    The types to look for.

    Returns
    Type Description
    bool

    true if the change includes any of the types; otherwise, false.

    View Source

    HasTypesNone(ContentTypeChangeTypes, ContentTypeChangeTypes)

    Determines whether the change includes none of the specified types.

    Declaration
    public static bool HasTypesNone(this ContentTypeChangeTypes change, ContentTypeChangeTypes types)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    ContentTypeChangeTypes types

    The types to look for.

    Returns
    Type Description
    bool

    true if the change includes none of the types; otherwise, false.

    View Source

    IsNonStructuralChange(ContentTypeChangeTypes)

    Determines whether the change has non-structural change impact.

    Declaration
    public static bool IsNonStructuralChange(this ContentTypeChangeTypes change)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    Returns
    Type Description
    bool

    true if the change has non-structural impact; otherwise, false.

    View Source

    IsStructuralChange(ContentTypeChangeTypes)

    Determines whether the change has structural change impact.

    Declaration
    public static bool IsStructuralChange(this ContentTypeChangeTypes change)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    Returns
    Type Description
    bool

    true if the change has structural impact; otherwise, false.

    View Source

    RequiresConvertedCacheClearOnly(ContentTypeChangeTypes)

    Determines whether the change only requires the converted (in-memory) content cache to be cleared, leaving the stored database cache (cmsContentNu) and HybridCache entries valid.

    Declaration
    public static bool RequiresConvertedCacheClearOnly(this ContentTypeChangeTypes change)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    Returns
    Type Description
    bool

    true for a non-structural change, or a structural change flagged RawDataUnaffected (e.g. a property removal).

    View Source

    RequiresRawDataRebuild(ContentTypeChangeTypes)

    Determines whether the change requires the raw database cache (cmsContentNu) to be rebuilt.

    Declaration
    public static bool RequiresRawDataRebuild(this ContentTypeChangeTypes change)
    Parameters
    Type Name Description
    ContentTypeChangeTypes change

    The change to check.

    Returns
    Type Description
    bool

    true for a structural change unless it is flagged RawDataUnaffected (e.g. a property removal), in which case the stored blob stays valid and only the converted cache needs clearing.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX