Class PropertyDataFactory
Default implementation of IProperty
Inheritance
Implements
Namespace: EPiServer.Construction.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class PropertyDataFactory : Object, IPropertyDataFactory
Constructors
PropertyDataFactory(ConstructorParameterResolver)
Initializes a new instance of the Property
Declaration
public PropertyDataFactory(ConstructorParameterResolver constructorParameterResolver)
Parameters
Type | Name | Description |
---|---|---|
Constructor |
constructorParameterResolver | The constructor parameter resolver. |
Methods
CreateInstance(PropertyDataType)
Creates a new PropertydataType
.
Declaration
public virtual PropertyData CreateInstance(PropertyDataType dataType)
Parameters
Type | Name | Description |
---|---|---|
Property |
dataType | The Property |
Returns
Type | Description |
---|---|
Property |
A new Property |
Exceptions
Type | Condition |
---|---|
System. |
Thrown if the |
CreateInstance(String, String)
Creates a new PropertytypeName
and assemblyName
.
Declaration
public virtual PropertyData CreateInstance(string typeName, string assemblyName)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeName | The full name of the System. |
System. |
assemblyName | The full name of the assembly where the System. |
Returns
Type | Description |
---|---|
Property |
A new Property |
CreateInstance(Type)
Creates a new Propertytype
argument.
Declaration
protected virtual PropertyData CreateInstance(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type of property that should be created. |
Returns
Type | Description |
---|---|
Property |
CreateProperty(PropertyDefinition)
Creates a new Propertydefinition
.
Declaration
public PropertyData CreateProperty(PropertyDefinition definition)
Parameters
Type | Name | Description |
---|---|---|
Property |
definition | The definition describing the property. |
Returns
Type | Description |
---|---|
Property |
A new Property |
TryCreateInstance(String, String, out PropertyData)
Tries to create a new PropertytypeName
and assemblyName
.
Declaration
public virtual bool TryCreateInstance(string typeName, string assemblyName, out PropertyData instance)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeName | The full type name to use. |
System. |
assemblyName | The assembly name to use. |
Property |
instance | The instance that is instanciated by the method. |
Returns
Type | Description |
---|---|
System. |
|