Table of Contents

Class PublicApi

Namespace
ToSic.Lib.Documentation
Assembly
ToSic.Lib.Core.dll

This attribute marks classes, properties etc. as public APIs. Any API / code with this attribute will be published in the docs. You can apply it to anything, but usually you will only need it on classes.

[PublicApi]
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
public class PublicApi : Attribute, _Attribute
Inheritance
PublicApi
Implements

Constructors

PublicApi()

The [PublicApi] attribute can be used without additional comment.

public PublicApi()

PublicApi(string)

Constructor with optional comment [PublicApi(some-comment)]

public PublicApi(string comment)

Parameters

comment string

Reason why it's public, optional