View Source
Class SurfaceController
Provides a base class for front-end add-in controllers.
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public abstract class SurfaceController : PluginController, IDiscoverable
Constructors
View Source
SurfaceController()
Declaration
protected SurfaceController()
View Source
SurfaceController(IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, ILogger, IProfilingLogger, UmbracoHelper)
Declaration
protected SurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper)
Parameters
Properties
View Source
CurrentPage
Declaration
protected virtual IPublishedContent CurrentPage { get; }
Property Value
Methods
View Source
CurrentUmbracoPage()
Returns the currently rendered Umbraco page
Declaration
protected UmbracoPageResult CurrentUmbracoPage()
Returns
View Source
RedirectToCurrentUmbracoPage()
Redirects to the currently rendered Umbraco page
Declaration
protected RedirectToUmbracoPageResult RedirectToCurrentUmbracoPage()
Returns
View Source
RedirectToCurrentUmbracoPage(NameValueCollection)
Redirects to the currently rendered Umbraco page and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToCurrentUmbracoPage(NameValueCollection queryStringValues)
Parameters
Type |
Name |
Description |
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
Returns
View Source
RedirectToCurrentUmbracoPage(String)
Redirects to the currently rendered Umbraco page and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToCurrentUmbracoPage(string queryString)
Parameters
Type |
Name |
Description |
System.String |
queryString |
|
Returns
View Source
RedirectToCurrentUmbracoUrl()
Redirects to the currently rendered Umbraco URL
Declaration
protected RedirectToUmbracoUrlResult RedirectToCurrentUmbracoUrl()
Returns
View Source
RedirectToUmbracoPage(Guid)
Redirects to the Umbraco page with the given id
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
Returns
View Source
RedirectToUmbracoPage(Guid, NameValueCollection)
Redirects to the Umbraco page with the given id and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(Guid key, NameValueCollection queryStringValues)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
Returns
View Source
RedirectToUmbracoPage(Guid, String)
Redirects to the Umbraco page with the given id and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(Guid key, string queryString)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.String |
queryString |
|
Returns
View Source
RedirectToUmbracoPage(Int32)
Redirects to the Umbraco page with the given id
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(int pageId)
Parameters
Type |
Name |
Description |
System.Int32 |
pageId |
|
Returns
View Source
RedirectToUmbracoPage(Int32, NameValueCollection)
Redirects to the Umbraco page with the given id and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(int pageId, NameValueCollection queryStringValues)
Parameters
Type |
Name |
Description |
System.Int32 |
pageId |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
Returns
View Source
RedirectToUmbracoPage(Int32, String)
Redirects to the Umbraco page with the given id and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(int pageId, string queryString)
Parameters
Type |
Name |
Description |
System.Int32 |
pageId |
|
System.String |
queryString |
|
Returns
View Source
RedirectToUmbracoPage(IPublishedContent)
Redirects to the Umbraco page with the given id
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(IPublishedContent publishedContent)
Parameters
Returns
View Source
RedirectToUmbracoPage(IPublishedContent, NameValueCollection)
Redirects to the Umbraco page with the given id and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(IPublishedContent publishedContent, NameValueCollection queryStringValues)
Parameters
Type |
Name |
Description |
IPublishedContent |
publishedContent |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
Returns
View Source
RedirectToUmbracoPage(IPublishedContent, String)
Redirects to the Umbraco page with the given id and passes provided querystring
Declaration
protected RedirectToUmbracoPageResult RedirectToUmbracoPage(IPublishedContent publishedContent, string queryString)
Parameters
Returns