Class DataValueReferenceFactoryCollection
Provides a builder collection for IData
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 Data
Declaration
public DataValueReferenceFactoryCollection(Func<IEnumerable<IDataValueReferenceFactory>> items)
Parameters
Type | Name | Description |
---|---|---|
Func<IEnumerable<IData |
items | The items. |
Methods
View SourceGetAllAutomaticRelationTypesAliases(PropertyEditorCollection)
Declaration
public ISet<string> GetAllAutomaticRelationTypesAliases(PropertyEditorCollection propertyEditors)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyEditors |
Returns
Type | Description |
---|---|
ISet<System. |
GetAllReferences(IPropertyCollection, PropertyEditorCollection)
Gets all unique references from the specified properties.
Declaration
public ISet<UmbracoEntityReference> GetAllReferences(IPropertyCollection properties, PropertyEditorCollection propertyEditors)
Parameters
Type | Name | Description |
---|---|---|
IProperty |
properties | The properties. |
Property |
propertyEditors | The property editors. |
Returns
Type | Description |
---|---|
ISet<Umbraco |
The unique references from the specified properties. |
GetAutomaticRelationTypesAliases(IPropertyCollection, PropertyEditorCollection)
Declaration
public ISet<string> GetAutomaticRelationTypesAliases(IPropertyCollection properties, PropertyEditorCollection propertyEditors)
Parameters
Type | Name | Description |
---|---|---|
IProperty |
properties | |
Property |
propertyEditors |
Returns
Type | Description |
---|---|
ISet<System. |
GetAutomaticRelationTypesAliases(IDataEditor)
Gets the automatic relation types aliases.
Declaration
public ISet<string> GetAutomaticRelationTypesAliases(IDataEditor dataEditor)
Parameters
Type | Name | Description |
---|---|---|
IData |
dataEditor | The data editor. |
Returns
Type | Description |
---|---|
ISet<System. |
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 |
---|---|---|
Property |
propertyEditors | The property editors. |
Returns
Type | Description |
---|---|
ISet<System. |
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 |
---|---|---|
IData |
dataEditor | The data editor. |
IEnumerable<System. |
values | The values. |
Returns
Type | Description |
---|---|
ISet<Umbraco |
The references. |
GetReferences(IDataEditor, Object[])
Gets the references.
Declaration
public IEnumerable<UmbracoEntityReference> GetReferences(IDataEditor dataEditor, params object[] values)
Parameters
Type | Name | Description |
---|---|---|
IData |
dataEditor | The data editor. |
System. |
values | The values. |
Returns
Type | Description |
---|---|
IEnumerable<Umbraco |
The references. |