Class PageDefinitionType
This class exists for backwards compatibility reasons. You want to work with the PropertyDefinitionType class instead.
Inherited Members
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[Obsolete("Use EPiServer.DataAbstraction.PropertyDefinitionType instead.", false)]
public class PageDefinitionType : PropertyDefinitionType, IReadOnly<PropertyDefinitionType>, IReadOnly
Constructors
PageDefinitionType()
Initializes a new instance of the PageDefinitionType class.
Declaration
public PageDefinitionType()
PageDefinitionType(Int32, PropertyDataType, String)
Initializes a new instance of the PageDefinitionType class and sets some default properties.
Declaration
public PageDefinitionType(int id, PropertyDataType type, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The unique identifier of type. |
PropertyDataType | type | The actual data type used by this type |
System.String | name | The name of the data type |
PageDefinitionType(Int32, PropertyDataType, String, String, String)
Initializes a new instance of the PageDefinitionType class and sets some default properties.
Declaration
public PageDefinitionType(int id, PropertyDataType type, string name, string typeName, string assemblyName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The unique identifier of type. |
PropertyDataType | type | The actual data type used by this type |
System.String | name | The name of the data type |
System.String | typeName | The full class name used to create a instance of this type |
System.String | assemblyName | The assembly used to create a instance of this type |
Methods
ClearCache()
Clear all items from the cache.
Declaration
[Obsolete("The PropertyDefinitionType cache management is now a responsibility of the PropertyDefinitionTypeRepository implementation.")]
public static void ClearCache()
Delete()
Delete type
Declaration
[Obsolete("Use IPropertyDefinitionTypeRepository.Delete(PropertyDefinitionType) instead.", false)]
public void Delete()
List()
List all defined types
Declaration
[Obsolete("Use IPropertyDefinitionTypeRepository.List() instead.", false)]
public static PageDefinitionTypeCollection List()
Returns
Type | Description |
---|---|
PageDefinitionTypeCollection | A collection of types |
Load(Int32)
Load a type based on identifier
Declaration
[Obsolete("Use IPropertyDefinitionTypeRepository.Load(int) instead.", false)]
public static PageDefinitionType Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The type identifier |
Returns
Type | Description |
---|---|
PageDefinitionType | A pagedefintiontype of null if not found |
Load(String, String)
Load a type based on its type and assembly
Declaration
[Obsolete("Use IPropertyDefinitionTypeRepository.Load(string, string) instead.", false)]
public static PageDefinitionType Load(string typeName, string assemblyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | The full class name |
System.String | assemblyName | The short assembly name |
Returns
Type | Description |
---|---|
PageDefinitionType |
Save()
Save changes to type
Declaration
[Obsolete("Use IPropertyDefinitionTypeRepository.Save(PropertyDefinitionType) instead.", false)]
public void Save()