Class PropertyDataFactory
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default implementation of IPropertyDataFactory.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Construction.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(IPropertyDataFactory))]
public class PropertyDataFactory : IPropertyDataFactory
Constructors
PropertyDataFactory(ConstructorParameterResolver)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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 |
|