Interface IContentTypeBaseServiceProvider
Provides the IContentTypeBaseService corresponding to an IContentBase object.
Namespace: Umbraco.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IContentTypeBaseServiceProvider
Methods
View SourceFor(IContentBase)
Gets the content type service base managing types for the specified content base.
Declaration
IContentTypeBaseService For(IContentBase contentBase)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | contentBase |
Returns
Type | Description |
---|---|
IContentTypeBaseService |
Remarks
If contentBase
is an IContent, this returns the
IContentTypeService, and if it's an IMedia, this returns
the IMediaTypeService, etc.
Services are returned as IContentTypeBaseService and can be used to retrieve the content / media / whatever type as IContentTypeComposition.
GetContentTypeOf(IContentBase)
Gets the content type of an IContentBase object.
Declaration
IContentTypeComposition GetContentTypeOf(IContentBase contentBase)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | contentBase |
Returns
Type | Description |
---|---|
IContentTypeComposition |