Interface IElementPublishStatusQueryService
Verifies the published status of elements.
Namespace: Umbraco.Cms.Core.Services.Navigation
Assembly: Umbraco.Core.dll
Syntax
public interface IElementPublishStatusQueryService
Methods
View SourceIsPublished(Guid, string)
Checks if an element is published in a specific culture.
Declaration
bool IsPublished(Guid elementKey, string culture)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | elementKey | The element's key. |
| string | culture | The culture. |
Returns
| Type | Description |
|---|---|
| bool | True if element is published in the specified culture. |
IsPublishedInAnyCulture(Guid)
Checks if an element is published in any culture.
Declaration
bool IsPublishedInAnyCulture(Guid elementKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | elementKey | The element's key. |
Returns
| Type | Description |
|---|---|
| bool | True if element has any published culture. |