View Source
Class ContentNotificationExtensions
Provides extension methods for content-related notifications to help determine
culture-specific save and publish states.
Assembly: Umbraco.Core.dll
Syntax
public static class ContentNotificationExtensions
Methods
View Source
HasPublishedCulture(ContentPublishedNotification, IContent, string)
Determines whether a culture has been published, during a Published notification
Declaration
public static bool HasPublishedCulture(this ContentPublishedNotification notification, IContent content, string culture)
Parameters
Returns
View Source
HasSavedCulture<T>(SavedNotification<T>, T, string)
Determines whether a culture has been saved, during a Saved notification
Declaration
public static bool HasSavedCulture<T>(this SavedNotification<T> notification, T content, string culture) where T : IContentBase
Parameters
Returns
Type Parameters
View Source
HasUnpublishedCulture(IContent, string)
Determines whether a culture has been unpublished for the specified content.
Declaration
public static bool HasUnpublishedCulture(IContent content, string culture)
Parameters
| Type |
Name |
Description |
| IContent |
content |
The content item to check.
|
| string |
culture |
The culture code to check.
|
Returns
| Type |
Description |
| bool |
true if the culture has been unpublished; otherwise, false.
|
View Source
HasUnpublishedCulture(ContentPublishedNotification, IContent, string)
Determines whether a culture has been unpublished, during a Published notification
Declaration
public static bool HasUnpublishedCulture(this ContentPublishedNotification notification, IContent content, string culture)
Parameters
Returns
View Source
HasUnpublishedCulture(ContentUnpublishedNotification, IContent, string)
Determines whether a culture has been unpublished, during an Unpublished notification
Declaration
public static bool HasUnpublishedCulture(this ContentUnpublishedNotification notification, IContent content, string culture)
Parameters
Returns
View Source
IsPublishingCulture(IContent, string)
Determines whether a culture is being published for the specified content.
Declaration
public static bool IsPublishingCulture(IContent content, string culture)
Parameters
| Type |
Name |
Description |
| IContent |
content |
The content item to check.
|
| string |
culture |
The culture code to check.
|
Returns
| Type |
Description |
| bool |
true if the culture is being published; otherwise, false.
|
View Source
IsPublishingCulture(ContentPublishingNotification, IContent, string)
Determines whether a culture is being published, during a Publishing notification
Declaration
public static bool IsPublishingCulture(this ContentPublishingNotification notification, IContent content, string culture)
Parameters
Returns
View Source
IsSavingCulture<T>(SavingNotification<T>, T, string)
Determines whether a culture is being saved, during a Saving notification
Declaration
public static bool IsSavingCulture<T>(this SavingNotification<T> notification, T content, string culture) where T : IContentBase
Parameters
Returns
Type Parameters
View Source
IsUnpublishingCulture(ContentPublishingNotification, IContent, string)
Determines whether a culture is being unpublished, during an Publishing notification
Declaration
public static bool IsUnpublishingCulture(this ContentPublishingNotification notification, IContent content, string culture)
Parameters
Returns
View Source
IsUnpublishingCulture(ContentUnpublishingNotification, IContent, string)
Determines whether a culture is being unpublished, during a Unpublishing notification
Declaration
public static bool IsUnpublishingCulture(this ContentUnpublishingNotification notification, IContent content, string culture)
Parameters
Returns