Class UIDescriptorRegistry
Registry that holds all ui descriptors for entity types.
Inheritance
Inherited Members
Namespace: EPiServer.Shell
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(UIDescriptorRegistry), Lifecycle = ServiceInstanceScope.Singleton)]
public class UIDescriptorRegistry
Constructors
UIDescriptorRegistry(UIDescriptor[], IUIDescriptorInitializer[])
Initializes a new instance of the UIDescriptor
Declaration
public UIDescriptorRegistry(UIDescriptor[] uiDescriptors, IUIDescriptorInitializer[] initializers)
Parameters
Type | Name | Description |
---|---|---|
UIDescriptor[] | uiDescriptors | The UI descriptors. |
IUIDescriptor |
initializers | The UI descriptor initializers |
UIDescriptorRegistry(UIDescriptor[], IUIDescriptorInitializer[], UIDescriptorProvider[])
Initializes a new instance of the UIDescriptor
Declaration
public UIDescriptorRegistry(UIDescriptor[] uiDescriptors, IUIDescriptorInitializer[] initializers, UIDescriptorProvider[] descriptorProviders)
Parameters
Type | Name | Description |
---|---|---|
UIDescriptor[] | uiDescriptors | The UI descriptors. |
IUIDescriptor |
initializers | The UI descriptor initializers |
UIDescriptor |
descriptorProviders | A collection of providers queried for additiona descriptors |
Properties
UIDescriptors
A collection of the UIDescriptors registered for available content types
Declaration
public virtual IEnumerable<UIDescriptor> UIDescriptors { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Add(UIDescriptor)
Adds the specified descriptor.
Declaration
[Obsolete("Inherit UIDescriptorProvider to add new ui descriptors")]
public virtual void Add(UIDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
UIDescriptor | descriptor | The descriptor. |
Remarks
This method is not thread safe. Implement UIDescriptor
GetAllRegisteredUIDescriptors()
Gets all registered UI descriptors.
Declaration
[Obsolete("Use the UIDescriptors property instead")]
public virtual IEnumerable<UIDescriptor> GetAllRegisteredUIDescriptors()
Returns
Type | Description |
---|---|
System. |
GetDescriptorsForType(Type)
Gets a list of ui descriptors registered for a type and its base types.
Declaration
public virtual IEnumerable<UIDescriptor> GetDescriptorsForType(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type |
Returns
Type | Description |
---|---|
System. |
A sorted list with the most specific matching type first. |
GetTypeIdentifiers(Type)
Gets the type identifiers.
Declaration
public virtual IEnumerable<string> GetTypeIdentifiers(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type to find . |
Returns
Type | Description |
---|---|
System. |
A sorted list with the most specific matching type first. |
HasMatchedTypeIdentifier(Type, IEnumerable<String>)
Determines whether any ui descriptor matching the type has any matching type identifiers in the provided collection.
Declaration
public virtual bool HasMatchedTypeIdentifier(Type type, IEnumerable<string> typeIdentifiers)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type to get ui descriptors for. |
System. |
typeIdentifiers | A collection of type identifier for matching. |
Returns
Type | Description |
---|---|
System. |