Interface ITypedApiService
This is a service to give you Typed Code outside 2sxc.
[WorkInProgressApi("Still WIP v20.00")]
public interface ITypedApiService
Remarks
Use this to access 2sxc data from a Theme, a .ascx
WebControl or anywhere else.
History
- New in v20
Methods
ApiOfApp(int)
ITypedApi ApiOfApp(int appId)
Parameters
appId
int
Returns
ApiOfApp(int, int)
ITypedApi ApiOfApp(int zoneId, int appId)
Parameters
Returns
ApiOfModule(int, int)
ITypedApi ApiOfModule(int pageId, int moduleId)
Parameters
Returns
ApiOfSite()
ITypedApi ApiOfSite()
Returns
ApiOfSite(int)
ITypedApi ApiOfSite(int siteId)
Parameters
siteId
int
Returns
App(NoParamOrder, int?, int?, ISite?, bool?)
IAppTyped App(NoParamOrder noParamOrder = default, int? zoneId = null, int? appId = null, ISite? site = null, bool? withUnpublished = null)
Parameters
noParamOrder
NoParamOrderzoneId
int?appId
int?site
ISitewithUnpublished
bool?
Returns
AppOfSite()
IAppTyped AppOfSite()