Class RenderNoContentController
Inheritance
object
ControllerBase
Controller
Namespace: Umbraco.Cms.Web.Website.Controllers
Assembly: Umbraco.Web.Website.dll
Syntax
public class RenderNoContentController : Controller
Constructors
View SourceRenderNoContentController(IHostingEnvironment, IOptionsSnapshot<GlobalSettings>, IDocumentUrlService)
Declaration
[ActivatorUtilitiesConstructor]
public RenderNoContentController(IHostingEnvironment hostingEnvironment, IOptionsSnapshot<GlobalSettings> globalSettings, IDocumentUrlService urlService)
Parameters
| Type | Name | Description |
|---|---|---|
| IHostingEnvironment | hostingEnvironment | |
| IOptionsSnapshot<GlobalSettings> | globalSettings | |
| IDocumentUrlService | urlService |
RenderNoContentController(IUmbracoContextAccessor, IHostingEnvironment, IOptionsSnapshot<GlobalSettings>)
Declaration
[Obsolete("Scheduled for removal in Umbraco 18")]
public RenderNoContentController(IUmbracoContextAccessor umbracoContextAccessor, IHostingEnvironment hostingEnvironment, IOptionsSnapshot<GlobalSettings> globalSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| IUmbracoContextAccessor | umbracoContextAccessor | |
| IHostingEnvironment | hostingEnvironment | |
| IOptionsSnapshot<GlobalSettings> | globalSettings |
Methods
View SourceIndex()
Declaration
public ActionResult Index()
Returns
| Type | Description |
|---|---|
| ActionResult |