November Happy Hour will be moved to Thursday December 5th.

Class MetadataHandlerRegistry

Inheritance
System.Object
MetadataHandlerRegistry
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.Shell.ObjectEditing
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(MetadataHandlerRegistry), Lifecycle = ServiceInstanceScope.Singleton)]
public class MetadataHandlerRegistry

Constructors

MetadataHandlerRegistry(EditorDescriptor[], IModelAccessorCreator[])

Declaration
public MetadataHandlerRegistry(EditorDescriptor[] descriptors, IModelAccessorCreator[] modelAccessorCreators)
Parameters
Type Name Description
EditorDescriptor[] descriptors
IModelAccessorCreator[] modelAccessorCreators

MetadataHandlerRegistry(EditorDescriptor[], IModelAccessorCreator[], IEditorDefinitionRepository)

Declaration
public MetadataHandlerRegistry(EditorDescriptor[] descriptors, IModelAccessorCreator[] modelAccessorCreators, IEditorDefinitionRepository editorDefinitionRepository)
Parameters
Type Name Description
EditorDescriptor[] descriptors
IModelAccessorCreator[] modelAccessorCreators
IEditorDefinitionRepository editorDefinitionRepository

Methods

GetMetadataHandlers(Type)

Declaration
public IEnumerable<IMetadataHandler> GetMetadataHandlers(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Collections.Generic.IEnumerable<IMetadataHandler>

GetMetadataHandlers(Type, String)

Declaration
public IEnumerable<IMetadataHandler> GetMetadataHandlers(Type type, string uiHint)
Parameters
Type Name Description
System.Type type
System.String uiHint
Returns
Type Description
System.Collections.Generic.IEnumerable<IMetadataHandler>

GetModelAccessor(Type, Dictionary<String, String>)

Declaration
public Func<object> GetModelAccessor(Type type, Dictionary<string, string> arguments)
Parameters
Type Name Description
System.Type type
System.Collections.Generic.Dictionary<System.String, System.String> arguments
Returns
Type Description
System.Func<System.Object>

RegisterMetadataHandler(Type, IMetadataHandler)

Declaration
public void RegisterMetadataHandler(Type type, IMetadataHandler metadataHandler)
Parameters
Type Name Description
System.Type type
IMetadataHandler metadataHandler

RegisterMetadataHandler(Type, IMetadataHandler, String)

Declaration
public void RegisterMetadataHandler(Type type, IMetadataHandler metadataHandler, string typeOverride)
Parameters
Type Name Description
System.Type type
IMetadataHandler metadataHandler
System.String typeOverride

RegisterMetadataHandler(Type, IMetadataHandler, String, EditorDescriptorBehavior)

Declaration
public void RegisterMetadataHandler(Type type, IMetadataHandler metadataHandler, string uiHint, EditorDescriptorBehavior editorDescriptorBehavior)
Parameters
Type Name Description
System.Type type
IMetadataHandler metadataHandler
System.String uiHint
EditorDescriptorBehavior editorDescriptorBehavior

RegisterMetadataHandler(Type[], IMetadataHandler)

Declaration
public void RegisterMetadataHandler(Type[] types, IMetadataHandler metadataHandler)
Parameters
Type Name Description
System.Type[] types
IMetadataHandler metadataHandler

RegisterModelAccessorCreator(Type, IModelAccessorCreator)

Declaration
public void RegisterModelAccessorCreator(Type type, IModelAccessorCreator accessorCreator)
Parameters
Type Name Description
System.Type type
IModelAccessorCreator accessorCreator

Extension Methods