Try our conversational search powered by Generative AI!

Class IPropertyControlFactoryExtensions

Inheritance
System.Object
IPropertyControlFactoryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public static class IPropertyControlFactoryExtensions

Methods

TryRegister<TPropertyData>(IPropertyControlFactory, Func<IPropertyControl>)

Try to register an IPropertyControl factory with a PropertyData type. If an existing registration exists nothing will be registered.

Declaration
public static IPropertyControlFactory TryRegister<TPropertyData>(this IPropertyControlFactory factory, Func<IPropertyControl> controlFactory)
    where TPropertyData : PropertyData
Parameters
Type Name Description
IPropertyControlFactory factory
System.Func<IPropertyControl> controlFactory

The control factory to register with the property data instance

Returns
Type Description
IPropertyControlFactory
Type Parameters
Name Description
TPropertyData

The PropertyData

TryRegister<TPropertyData, TPropertyControl>(IPropertyControlFactory)

Try to register an IPropertyControl with a PropertyData type. If an existing registration exists nothing will be registered.

Declaration
public static IPropertyControlFactory TryRegister<TPropertyData, TPropertyControl>(this IPropertyControlFactory factory)
    where TPropertyData : PropertyData where TPropertyControl : IPropertyControl
Parameters
Type Name Description
IPropertyControlFactory factory
Returns
Type Description
IPropertyControlFactory
Type Parameters
Name Description
TPropertyData

The PropertyData

TPropertyControl

The property control