View Source
Class PublishedRequestExtensions
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class PublishedRequestExtensions
Methods
View Source
GetRouteResult(IPublishedRequest)
Declaration
public static UmbracoRouteResult GetRouteResult(this IPublishedRequest publishedRequest)
Parameters
Returns
View Source
GetTemplateAlias(IPublishedRequest)
Gets the alias of the template to use to display the requested content.
Declaration
public static string GetTemplateAlias(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
HasDomain(IPublishedRequest)
Gets a value indicating whether the content request has a domain.
Declaration
public static bool HasDomain(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
HasDomain(IPublishedRequestBuilder)
Gets a value indicating whether the content request has a domain.
Declaration
public static bool HasDomain(this IPublishedRequestBuilder publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
HasPublishedContent(IPublishedRequest)
Gets a value indicating whether the content request has a content.
Declaration
public static bool HasPublishedContent(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
HasPublishedContent(IPublishedRequestBuilder)
Gets a value indicating whether the content request has a content.
Declaration
public static bool HasPublishedContent(this IPublishedRequestBuilder publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
HasTemplate(IPublishedRequest)
Gets a value indicating whether the content request has a template.
Declaration
public static bool HasTemplate(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
HasTemplate(IPublishedRequestBuilder)
Gets a value indicating whether the content request has a template.
Declaration
public static bool HasTemplate(this IPublishedRequestBuilder publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
Is404(IPublishedRequest)
Gets a value indicating whether the requested content could not be found.
Declaration
public static bool Is404(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
IsRedirect(IPublishedRequest)
Gets indicating whether the content request triggers a redirect (permanent or not).
Declaration
public static bool IsRedirect(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
IsRedirect(IPublishedRequestBuilder)
Gets a value indicating whether the content request triggers a redirect (permanent or not).
Declaration
public static bool IsRedirect(this IPublishedRequestBuilder publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
IsRedirectPermanent(IPublishedRequest)
Gets a value indicating whether the redirect is permanent.
Declaration
public static bool IsRedirectPermanent(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
SetIs404(IPublishedRequestBuilder)
Sets the response status to be 404 not found
Declaration
public static IPublishedRequestBuilder SetIs404(this IPublishedRequestBuilder publishedRequest)
Parameters
Returns
View Source
Success(IPublishedRequest)
Gets a value indicating whether the request was successfully routed
Declaration
public static bool Success(this IPublishedRequest publishedRequest)
Parameters
Returns
Type |
Description |
System.Boolean |
|