View Source
Class ContentServiceExtensions
Content service extension methods
Inheritance
System.Object
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
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 |
|