Class ContentTypeServiceExtensions
Inheritance
System.Object
Namespace: Umbraco.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public static class ContentTypeServiceExtensions
Methods
View SourceGetAllElementTypes(IContentTypeService)
Gets all of the element types (e.g. content types that have been marked as an element type).
Declaration
public static IEnumerable<IContentType> GetAllElementTypes(this IContentTypeService contentTypeService)
Parameters
Type | Name | Description |
---|---|---|
IContentTypeService | contentTypeService | The content type service. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IContentType> | Returns all the element types. |