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>>)
Initializes a new instance of the DataValueReferenceFactoryCollection class.
Declaration
public DataValueReferenceFactoryCollection(Func<IEnumerable<IDataValueReferenceFactory>> items)
Parameters
Type | Name | Description |
---|---|---|
Func<IEnumerable<IDataValueReferenceFactory>> | items | The items. |
Methods
View SourceGetAllAutomaticRelationTypesAliases(PropertyEditorCollection)
Declaration
public ISet<string> GetAllAutomaticRelationTypesAliases(PropertyEditorCollection propertyEditors)
Parameters
Type | Name | Description |
---|---|---|
PropertyEditorCollection | propertyEditors |
Returns
Type | Description |
---|---|
ISet<System.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(IPropertyCollection, PropertyEditorCollection)
Declaration
public ISet<string> GetAutomaticRelationTypesAliases(IPropertyCollection properties, PropertyEditorCollection propertyEditors)
Parameters
Type | Name | Description |
---|---|---|
IPropertyCollection | properties | |
PropertyEditorCollection | propertyEditors |
Returns
Type | Description |
---|---|
ISet<System.String> |
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<System.String> | The automatic relation types aliases. |
GetAutomaticRelationTypesAliases(PropertyEditorCollection)
Gets all relation type aliases that are automatically tracked.
Declaration
public ISet<string> GetAutomaticRelationTypesAliases(PropertyEditorCollection propertyEditors)
Parameters
Type | Name | Description |
---|---|---|
PropertyEditorCollection | propertyEditors | The property editors. |
Returns
Type | Description |
---|---|
ISet<System.String> | All relation type aliases that are automatically tracked. |
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<System.Object> | values | The values. |
Returns
Type | Description |
---|---|
ISet<UmbracoEntityReference> | The references. |
GetReferences(IDataEditor, Object[])
Gets the references.
Declaration
public IEnumerable<UmbracoEntityReference> GetReferences(IDataEditor dataEditor, params object[] values)
Parameters
Type | Name | Description |
---|---|---|
IDataEditor | dataEditor | The data editor. |
System.Object[] | values | The values. |
Returns
Type | Description |
---|---|
IEnumerable<UmbracoEntityReference> | The references. |