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