Search Results for

    Show / Hide Table of Contents
    View Source

    Class ApiPropertyRenderer

    Default implementation of IApiPropertyRenderer that renders property values for the Delivery API.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public class ApiPropertyRenderer : IApiPropertyRenderer

    Constructors

    View Source

    ApiPropertyRenderer(IPublishedValueFallback)

    Initializes a new instance of the ApiPropertyRenderer class.

    Declaration
    public ApiPropertyRenderer(IPublishedValueFallback publishedValueFallback)
    Parameters
    Type Name Description
    IPublishedValueFallback publishedValueFallback

    The published value fallback service.

    Methods

    View Source

    GetPropertyValue(IPublishedProperty, bool)

    Gets the rendered value of a property for the Delivery API response.

    Declaration
    public object? GetPropertyValue(IPublishedProperty property, bool expanding)
    Parameters
    Type Name Description
    IPublishedProperty property

    The published property to render.

    bool expanding

    Whether the property value should be expanded.

    Returns
    Type Description
    object

    The rendered property value.

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