Search Results for

    Show / Hide Table of Contents
    View Source

    Class IncludeInApiVersionAttribute

    Inheritance
    object
    Attribute
    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public class IncludeInApiVersionAttribute : Attribute

    Constructors

    View Source

    IncludeInApiVersionAttribute(int, int)

    Initializes a new instance of the IncludeInApiVersionAttribute class. Specifies that the property should be included in the API response if the API version falls within the specified bounds.

    Declaration
    public IncludeInApiVersionAttribute(int minVersion = -1, int maxVersion = -1)
    Parameters
    Type Name Description
    int minVersion

    The minimum API version (inclusive) for which the property should be included.

    int maxVersion

    The maximum API version (inclusive) for which the property should be included.

    Properties

    View Source

    MaxVersion

    Declaration
    public int? MaxVersion { get; }
    Property Value
    Type Description
    int?
    View Source

    MinVersion

    Declaration
    public int? MinVersion { get; }
    Property Value
    Type Description
    int?
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX