Interface IPropertyDataFactory
Defines the signature for a component that constructs PropertyData instances.
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IPropertyDataFactory
Methods
CreateInstance(PropertyDataType)
Creates a new PropertyData instance that matches the
provided dataType
.
Declaration
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. |
CreateInstance(String, String)
Creates a new PropertyData instance that matches the
provided typeName
and assemblyName
.
Declaration
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. |
CreateProperty(PropertyDefinition)
Creates a new PropertyData instance and populates it with data
according to the specified definition
.
Declaration
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
bool TryCreateInstance(string typeName, string assemblyName, out PropertyData instance)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | Name of the type. |
System.String | assemblyName | Name of the assembly. |
PropertyData | instance | The instance that is instanciated by the method. |
Returns
Type | Description |
---|---|
System.Boolean |
|