Interface IPropertyDefinitionRepository
Defines methods for interacting with a data repository where Property
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IPropertyDefinitionRepository
Methods
CheckUsage(Int32, Boolean, Boolean, Boolean)
Retrieves information if the Property
Declaration
bool CheckUsage(int propertyDefinitionID, bool onlyNoneMasterLanguage, bool onlyPublished, bool isDynamic)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyDefinitionID | The page definition ID. |
System. |
onlyNoneMasterLanguage | if set to |
System. |
onlyPublished | if set to |
System. |
isDynamic | if set to |
Returns
Type | Description |
---|---|
System. |
true if there is data stored for definition otherwise false. |
Delete(PropertyDefinition)
Deletes a Property
Declaration
void Delete(PropertyDefinition propertyDefinition)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyDefinition | The Property |
ExistsPropertyDefinitionWithContentType(Guid)
Determines whether there is any property definition of the specified content type.
Declaration
bool ExistsPropertyDefinitionWithContentType(Guid contentTypeID)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentTypeID | The content type ID. |
Returns
Type | Description |
---|---|
System. |
|
Remarks
An example would be if there is a content type that has a property definition of a block with the specified id (contentTypeID)
GetUsage(Int32, Boolean, Boolean, Boolean)
Retrieves information about the usage of the Property
Declaration
IEnumerable<ContentUsage> GetUsage(int propertyDefinitionID, bool onlyNoneMasterLanguage, bool onlyPublished, bool isDynamic)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyDefinitionID | The page definition ID. |
System. |
onlyNoneMasterLanguage | if set to |
System. |
onlyPublished | if set to |
System. |
isDynamic | if set to |
Returns
Type | Description |
---|---|
System. |
List of Content |
List(Int32)
Lists all Property
Declaration
IEnumerable<PropertyDefinition> List(int pageTypeID)
Parameters
Type | Name | Description |
---|---|---|
System. |
pageTypeID | The page type id. |
Returns
Type | Description |
---|---|
System. |
Enumeration of Property |
ListDynamic()
Lists all Property
Declaration
IEnumerable<PropertyDefinition> ListDynamic()
Returns
Type | Description |
---|---|
System. |
A list of Property |
Load(Int32)
Loads a Property
Declaration
PropertyDefinition Load(int propertyDefinitionID)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyDefinitionID | The Id of the definition to load. |
Returns
Type | Description |
---|---|
Property |
The Property |
Save(PropertyDefinition)
Saves the specified Property
Declaration
void Save(PropertyDefinition propertyDefinition)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyDefinition | The page definition to save. |