Class DataValueEditorFactory
Provides a factory for creating IDataValueEditor instances.
Inheritance
object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public class DataValueEditorFactory : IDataValueEditorFactory
Constructors
View SourceDataValueEditorFactory(IServiceProvider)
Initializes a new instance of the DataValueEditorFactory class.
Declaration
public DataValueEditorFactory(IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | serviceProvider | The service provider used to resolve dependencies. |
Methods
View SourceCreate<TDataValueEditor>(params object[])
Creates a new instance of the specified TDataValueEditor type.
Declaration
public TDataValueEditor Create<TDataValueEditor>(params object[] args) where TDataValueEditor : class, IDataValueEditor
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | args | The constructor arguments for the data value editor. |
Returns
| Type | Description |
|---|---|
| TDataValueEditor | A new instance of the specified data value editor type. |
Type Parameters
| Name | Description |
|---|---|
| TDataValueEditor | The type of data value editor to create. |