Search Results for

    Show / Hide Table of Contents
    View Source

    Class ConflictingPackageData

    Provides methods to detect conflicting package data during package installation.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Packaging
    Assembly: Umbraco.Core.dll
    Syntax
    public class ConflictingPackageData

    Constructors

    View Source

    ConflictingPackageData(IFileService)

    Initializes a new instance of the ConflictingPackageData class.

    Declaration
    public ConflictingPackageData(IFileService fileService)
    Parameters
    Type Name Description
    IFileService fileService

    The file service used to check for existing files.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when fileService is null.

    Methods

    View Source

    FindConflictingStylesheets(IEnumerable<XElement>?)

    Finds stylesheets in the package that already exist in the system.

    Declaration
    public IEnumerable<IFile?>? FindConflictingStylesheets(IEnumerable<XElement>? stylesheetNodes)
    Parameters
    Type Name Description
    IEnumerable<XElement> stylesheetNodes

    The XML elements representing stylesheets from the package.

    Returns
    Type Description
    IEnumerable<IFile>

    A collection of existing stylesheets that conflict with the package, or null if no nodes provided.

    Exceptions
    Type Condition
    FormatException

    Thrown when a stylesheet node is missing the required "Name" element.

    View Source

    FindConflictingTemplates(IEnumerable<XElement>?)

    Finds templates in the package that already exist in the system.

    Declaration
    public IEnumerable<ITemplate>? FindConflictingTemplates(IEnumerable<XElement>? templateNodes)
    Parameters
    Type Name Description
    IEnumerable<XElement> templateNodes

    The XML elements representing templates from the package.

    Returns
    Type Description
    IEnumerable<ITemplate>

    A collection of existing templates that conflict with the package, or null if no nodes provided.

    Exceptions
    Type Condition
    FormatException

    Thrown when a template node is missing the required "Alias" element.

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