View Source
Interface IContentTypeService
Assembly: Umbraco.Core.dll
Syntax
public interface IContentTypeService : IContentTypeBaseService<IContentType>, IContentTypeBaseService, IService
Methods
View Source
GetAllContentTypeAliases(Guid[])
Gets all content type aliases
Declaration
IEnumerable<string> GetAllContentTypeAliases(params Guid[] objectTypes)
Parameters
Type |
Name |
Description |
Guid[] |
objectTypes |
If this list is empty, it will return all content type aliases for media, members and content, otherwise
it will only return content type aliases for the object types specified
|
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
GetAllContentTypeIds(String[])
Returns all content type Ids for the aliases given
Declaration
IEnumerable<int> GetAllContentTypeIds(string[] aliases)
Parameters
Type |
Name |
Description |
System.String[] |
aliases |
|
Returns
Type |
Description |
IEnumerable<System.Int32> |
|
View Source
GetAllPropertyTypeAliases()
Gets all property type aliases.
Declaration
IEnumerable<string> GetAllPropertyTypeAliases()
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
GetByQueryAsync(IQuery<IContentType>, CancellationToken)
Declaration
virtual Task<IEnumerable<IContentType>> GetByQueryAsync(IQuery<IContentType> query, CancellationToken cancellationToken)
Parameters
Returns