Class Api12
Base Class for modern Api Controllers in Dnn
Class Custom.Dnn.Api12 for Dnn ☢️
This is the Dnn specific base class. It's the very same as Custom.Hybrid.Api12
except for the additional Dnn
Property.
Because of this, the documentation here only shows Dnn
- for all other properties go to Custom.Hybrid.Api12
Tip
If you don't need these special properties, we strongly suggest to move to the Hybrid implementation.
Inheritance
DnnApiController
Api12
Inherited Members
Namespace: Custom.Dnn
Assembly: ToSic.Sxc.Dnn.WebApi.dll
Syntax
[PublicApi_Stable_ForUseInYourCode("This is the official base class for v12+")]
public abstract class Api12 : Api12, IDynamicCode12, IHasCodeLog, IDynamicWebApi, IDnnDynamicCode, IDynamicCode, IHasLog, IHasDnn
Constructors
| Improve this Doc View SourceApi12()
Declaration
protected Api12()
Api12(string)
Declaration
protected Api12(string logSuffix)
Parameters
Type | Name | Description |
---|---|---|
string | logSuffix |
Properties
| Improve this Doc View SourceDnn
The DNN context. Has various objects to access the Dnn Page, etc.
Declaration
public IDnnContext Dnn { get; }
Property Value
Type | Description |
---|---|
IDnnContext |