Search Results for

    Show / Hide Table of Contents
    View Source

    Class MapToApiAttribute

    Attribute used to map a class to a specific API for OpenAPI documentation generation.

    Inheritance
    object
    Attribute
    Namespace: Umbraco.Cms.Api.Common.Attributes
    Assembly: Umbraco.Cms.Api.Common.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class MapToApiAttribute : Attribute

    Constructors

    View Source

    MapToApiAttribute(string)

    Initializes a new instance of the MapToApiAttribute class.

    Declaration
    public MapToApiAttribute(string apiName)
    Parameters
    Type Name Description
    string apiName

    The name of the API to map to.

    Properties

    View Source

    ApiName

    Gets the name of the API this class is mapped to.

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