Table of Contents

Interface ITypedApiService

Namespace
ToSic.Sxc.Services
Assembly
ToSic.Sxc.Code.dll

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

ITypedApi

ApiOfApp(int, int)

ITypedApi ApiOfApp(int zoneId, int appId)

Parameters

zoneId int
appId int

Returns

ITypedApi

ApiOfModule(int, int)

ITypedApi ApiOfModule(int pageId, int moduleId)

Parameters

pageId int
moduleId int

Returns

ITypedApi

ApiOfSite()

ITypedApi ApiOfSite()

Returns

ITypedApi

ApiOfSite(int)

ITypedApi ApiOfSite(int siteId)

Parameters

siteId int

Returns

ITypedApi

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 NoParamOrder
zoneId int?
appId int?
site ISite
withUnpublished bool?

Returns

IAppTyped

AppOfSite()

IAppTyped AppOfSite()

Returns

IAppTyped