Table of Contents
These v19 docs are archived 🔒. Go to the latest docs home or try if this exact page is available in the latest docs.

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
Inheritance
object
Attribute
PublicApi

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