These v19 docs are archived 🔒.
Go to the
latest docs home
or try if
this exact page is available
in the latest docs.
Class PrivateApi
- Namespace
- ToSic.Lib.Documentation
- Assembly
- ToSic.Lib.Core.dll
This attribute marks classes, methods, etc. as private APIs
So they should not be publicly documented.
By default, all APIs are private, so you only need this attribute on children of classes marked with [PublicApi]
see PublicApi.
[PublicApi]
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
public class PrivateApi : Attribute
- Inheritance
-
objectAttributePrivateApi
Constructors
PrivateApi()
The [PrivateApi]
attribute can be used without additional comment.
public PrivateApi()
PrivateApi(string)
Constructor with optional comment [PrivateApi(some-comment)]
.
public PrivateApi(string comment)
Parameters
comment
stringReason why it's private, optional