Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataValueReferenceFactoryCollection

    Provides a builder collection for IDataValueReferenceFactory items.

    Inheritance
    object
    BuilderCollectionBase<IDataValueReferenceFactory>
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Core.dll
    Syntax
    public class DataValueReferenceFactoryCollection : BuilderCollectionBase<IDataValueReferenceFactory>, IBuilderCollection<IDataValueReferenceFactory>

    Constructors

    View Source

    DataValueReferenceFactoryCollection(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 Source

    GetAllAutomaticRelationTypesAliases(PropertyEditorCollection)

    Gets all automatic relation type aliases for all property editors.

    Declaration
    public ISet<string> GetAllAutomaticRelationTypesAliases(PropertyEditorCollection propertyEditors)
    Parameters
    Type Name Description
    PropertyEditorCollection propertyEditors

    The property editors collection.

    Returns
    Type Description
    ISet<string>

    A set of automatic relation type aliases.

    View Source

    GetAllReferences(IPropertyCollection, PropertyEditorCollection)

    Gets all unique references from the specified properties. Includes both EditedValue and PublishedValue for each property.

    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.

    View Source

    GetAllReferences(IPropertyCollection, PropertyEditorCollection, bool)

    Gets all unique references from the specified properties.

    Declaration
    public ISet<UmbracoEntityReference> GetAllReferences(IPropertyCollection properties, PropertyEditorCollection propertyEditors, bool trackPublishedValues)
    Parameters
    Type Name Description
    IPropertyCollection properties

    The properties.

    PropertyEditorCollection propertyEditors

    The property editors.

    bool trackPublishedValues

    When true, both EditedValue and PublishedValue are included. When false, only EditedValue is included — use this for unpublished content to avoid retaining stale relations from the previously-published property snapshot.

    Returns
    Type Description
    ISet<UmbracoEntityReference>

    The unique references from the specified properties.

    View Source

    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.

    View Source

    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.

    View Source

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX