Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPackageDefinitionRepository

    Defines methods for persisting package definitions to storage

    Namespace: Umbraco.Cms.Core.Packaging
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPackageDefinitionRepository

    Methods

    View Source

    Delete(Int32)

    Declaration
    void Delete(int id)
    Parameters
    Type Name Description
    System.Int32 id
    View Source

    GetAll()

    Declaration
    IEnumerable<PackageDefinition> GetAll()
    Returns
    Type Description
    IEnumerable<PackageDefinition>
    View Source

    GetById(Int32)

    Declaration
    PackageDefinition GetById(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    PackageDefinition
    View Source

    SavePackage(PackageDefinition)

    Persists a package definition to storage

    Declaration
    bool SavePackage(PackageDefinition definition)
    Parameters
    Type Name Description
    PackageDefinition definition
    Returns
    Type Description
    System.Boolean

    true if creating/updating the package was successful, otherwise false

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Delete(Int32)
      • GetAll()
      • GetById(Int32)
      • SavePackage(PackageDefinition)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX