Interface IPropertyDataFactory
Defines the signature for a component that constructs Property
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IPropertyDataFactory
Methods
CreateInstance(PropertyDataType)
Creates a new PropertydataType
.
Declaration
PropertyData CreateInstance(PropertyDataType dataType)
Parameters
Type | Name | Description |
---|---|---|
Property |
dataType | The Property |
Returns
Type | Description |
---|---|
Property |
A new Property |
CreateInstance(String, String)
Creates a new PropertytypeName
and assemblyName
.
Declaration
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 |
CreateProperty(PropertyDefinition)
Creates a new Propertydefinition
.
Declaration
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
bool TryCreateInstance(string typeName, string assemblyName, out PropertyData instance)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeName | Name of the type. |
System. |
assemblyName | Name of the assembly. |
Property |
instance | The instance that is instanciated by the method. |
Returns
Type | Description |
---|---|
System. |
|