Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentServiceExtensions

    Content service extension methods

    Inheritance
    System.Object
    Namespace: Umbraco.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public static class ContentServiceExtensions

    Methods

    View Source

    CreateContent(IContentService, String, Udi, String, Int32)

    Method to create an IContent object based on the Udi of a parent

    Declaration
    public static IContent CreateContent(this IContentService contentService, string name, Udi parentId, string contentTypeAlias, int userId = -1)
    Parameters
    Type Name Description
    IContentService contentService
    System.String name
    Udi parentId
    System.String contentTypeAlias
    System.Int32 userId
    Returns
    Type Description
    IContent
    View Source

    GetByIds(IContentService, IEnumerable<Udi>)

    Declaration
    public static IEnumerable<IContent> GetByIds(this IContentService contentService, IEnumerable<Udi> ids)
    Parameters
    Type Name Description
    IContentService contentService
    System.Collections.Generic.IEnumerable<Udi> ids
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IContent>
    View Source

    RemoveContentPermissions(IContentService, Int32)

    Remove all permissions for this user for all nodes

    Declaration
    public static void RemoveContentPermissions(this IContentService contentService, int contentId)
    Parameters
    Type Name Description
    IContentService contentService
    System.Int32 contentId
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • CreateContent(IContentService, String, Udi, String, Int32)
      • GetByIds(IContentService, IEnumerable<Udi>)
      • RemoveContentPermissions(IContentService, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX