Class DataValueReferenceFactoryCollection
Provides a builder collection for IDataValueReferenceFactory items.
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public class DataValueReferenceFactoryCollection : BuilderCollectionBase<IDataValueReferenceFactory>, IBuilderCollection<IDataValueReferenceFactory>
Constructors
View SourceDataValueReferenceFactoryCollection(Func<IEnumerable<IDataValueReferenceFactory>>, ILogger<DataValueReferenceFactoryCollection>)
Initializes a new instance of the DataValueReferenceFactoryCollection class.
Declaration
public DataValueReferenceFactoryCollection(Func<IEnumerable<IDataValueReferenceFactory>> items, ILogger<DataValueReferenceFactoryCollection> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<IEnumerable<IDataValueReferenceFactory>> | items | The items. |
| ILogger<DataValueReferenceFactoryCollection> | logger | The logger. |
Methods
View SourceGetAllAutomaticRelationTypesAliases(PropertyEditorCollection)
Declaration
public ISet<string> GetAllAutomaticRelationTypesAliases(PropertyEditorCollection propertyEditors)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyEditorCollection | propertyEditors |
Returns
| Type | Description |
|---|---|
| ISet<string> |
GetAllReferences(IPropertyCollection, PropertyEditorCollection)
Gets all unique references from the specified properties.
Declaration
public ISet<UmbracoEntityReference> GetAllReferences(IPropertyCollection properties, PropertyEditorCollection propertyEditors)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyCollection | properties | The properties. |
| PropertyEditorCollection | propertyEditors | The property editors. |
Returns
| Type | Description |
|---|---|
| ISet<UmbracoEntityReference> | The unique references from the specified properties. |
GetAutomaticRelationTypesAliases(IDataEditor)
Gets the automatic relation types aliases.
Declaration
public ISet<string> GetAutomaticRelationTypesAliases(IDataEditor dataEditor)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataEditor | dataEditor | The data editor. |
Returns
| Type | Description |
|---|---|
| ISet<string> | The automatic relation types aliases. |
GetReferences(IDataEditor, IEnumerable<object?>)
Gets the references.
Declaration
public ISet<UmbracoEntityReference> GetReferences(IDataEditor dataEditor, IEnumerable<object?> values)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataEditor | dataEditor | The data editor. |
| IEnumerable<object> | values | The values. |
Returns
| Type | Description |
|---|---|
| ISet<UmbracoEntityReference> | The references. |
GetReferences(IDataEditor, params object?[])
Gets the references.
Declaration
public IEnumerable<UmbracoEntityReference> GetReferences(IDataEditor dataEditor, params object?[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataEditor | dataEditor | The data editor. |
| object[] | values | The values. |
Returns
| Type | Description |
|---|---|
| IEnumerable<UmbracoEntityReference> | The references. |