View Source
Class DeliveryApiSettingsExtensions
Provides extension methods for determining whether content types or content items are allowed to be exposed through
the Delivery API based on the configured allow and disallow lists.
Assembly: Umbraco.Core.dll
Syntax
public static class DeliveryApiSettingsExtensions
Methods
View Source
IsAllowedContentType(DeliveryApiSettings, string)
Determines whether a content type alias is allowed to be exposed through the Delivery API.
Declaration
public static bool IsAllowedContentType(this DeliveryApiSettings settings, string contentTypeAlias)
Parameters
| Type |
Name |
Description |
| DeliveryApiSettings |
settings |
The Delivery API settings.
|
| string |
contentTypeAlias |
The content type alias to check.
|
Returns
| Type |
Description |
| bool |
true if the content type is allowed; otherwise, false.
|
View Source
IsAllowedContentType(DeliveryApiSettings, IPublishedContent)
Declaration
[Obsolete("Please use the overload of IsAllowedContentType taking a content type alias. Scheduled for removal in Umbraco 19.")]
public static bool IsAllowedContentType(this DeliveryApiSettings settings, IPublishedContent content)
Parameters
Returns
View Source
IsDisallowedContentType(DeliveryApiSettings, string)
Declaration
[Obsolete("Please use IsAllowedContentType and negate the result instead. Scheduled for removal in Umbraco 19.")]
public static bool IsDisallowedContentType(this DeliveryApiSettings settings, string contentTypeAlias)
Parameters
Returns
View Source
IsDisallowedContentType(DeliveryApiSettings, IPublishedContent)
Declaration
[Obsolete("Please use IsAllowedContentType and negate the result instead. Scheduled for removal in Umbraco 19.")]
public static bool IsDisallowedContentType(this DeliveryApiSettings settings, IPublishedContent content)
Parameters
Returns