Interface IContentModelUsage
Defines signatures for the component that handles usage information about content models.
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public interface IContentModelUsage
Methods
IsContentTypeUsed(ContentType)
Performs a check if specified ContentType is used.
This method is for example called before a content type defined in code is deleted.
Declaration
bool IsContentTypeUsed(ContentType contentType)
Parameters
Type | Name | Description |
---|---|---|
ContentType | contentType | The contentType to return references for. |
Returns
Type | Description |
---|---|
System.Boolean |
IsPropertyDefinitionUsed(PropertyDefinition)
Performs a check if specified PropertyDefinition is used.
This method is for example called before a property definition type defined in code is deleted.
Declaration
bool IsPropertyDefinitionUsed(PropertyDefinition propertyDefinition)
Parameters
Type | Name | Description |
---|---|---|
PropertyDefinition | propertyDefinition | The property definition. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ListContentOfContentType(ContentType)
Gets a list of references to contents of specified ContentType.
This method is for example called before a content type defined in code is deleted.
Declaration
IList<ContentUsage> ListContentOfContentType(ContentType contentType)
Parameters
Type | Name | Description |
---|---|---|
ContentType | contentType | The contentType to return references for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<ContentUsage> |
ListContentWithPropertyDefinition(PropertyDefinition, Boolean, Boolean)
Gets the contents with instance of content definition.
This method is for example called before a content definition defined in code is deleted.
Declaration
IList<ContentUsage> ListContentWithPropertyDefinition(PropertyDefinition propertyDefinition, bool onlyNoneMasterLanguage, bool onlyPublished)
Parameters
Type | Name | Description |
---|---|---|
PropertyDefinition | propertyDefinition | The property definition. |
System.Boolean | onlyNoneMasterLanguage | if set to |
System.Boolean | onlyPublished | if set to |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<ContentUsage> |